Your question seems to have invalid data. There is no A1287 MBP model. There are A1286, A1297, A1278 and A1286. Would you please clarify? I would be happy to help with the correct information. (There are others, but those are the closest IDs to what you wrote.)
MacBook Pro A1278 configurations are as follows:
13" Mid-2009 Max 8 GB RAM PC3-8500 1066 MHz MacBookPro5,5
13" Mid-2010 Max 16 GB RAM PC3-8500 1066 MHz MacBookPro7,1
13" Early-2011 Max 16 GB RAM PC-10600 1333 MHz MacBookPro8,1
13" Late-2011 Max 16 GB RAM PC-10600 1333 MHz MacBookPro8,1
13" Mid-2012 Max 16 GB RM PC3-12800 1600 MHz MacBookPro9,2
You can use the System Information app in Applications | Utilities to determine which of the MacBookPro models you have. From there, it should be easy for you to determine compatible memory.
This information was all gleaned from Mactracker, a free download from the App Store.