Use Robolectric 2.4