@Test
public void shouldInjectNamedSharedPrefs() throws Exception {

    RoboGuice.getOrCreateBaseApplicationInjector(Robolectric.application,RoboGuice.DEFAULT_STAGE, RoboGuice.newDefaultRoboModule(Robolectric.application), new ModuleA() );
    try {
        final A a = Robolectric.buildActivity(A.class).create().get();
        final Field f = TestSharedPreferences.class.getDeclaredField("filename");
        f.setAccessible(true);
        assertEquals("FOOBAR", f.get(a.prefs));
    } finally {
        RoboGuice.Util.reset();
    }
}