@Test
public void shouldNotFallbackOnOldDefaultIfNamedFileSpecified() throws Exception {

    RoboGuice.getOrCreateBaseApplicationInjector(Robolectric.application,RoboGuice.DEFAULT_STAGE, RoboGuice.newDefaultRoboModule(Robolectric.application), new ModuleA() );
    final File oldDefault = new File("shared_prefs/default.xml");
    final File oldDir = new File("shared_prefs");
    oldDir.mkdirs();
    oldDefault.createNewFile();
    try {
        final A a = Robolectric.buildActivity(A.class).create().get();
        final Field f = TestSharedPreferences.class.getDeclaredField("filename");
        f.setAccessible(true);
        assertTrue(Strings.notEmpty(f.get(a.prefs)));
        assertEquals("FOOBAR", f.get(a.prefs));
    } finally {
        RoboGuice.Util.reset();
        oldDefault.delete();
        oldDir.delete();
    }
}