AndroidDirectoryProvider implements DirectoryProvider { @Override public File getStoreDirectory() { return storeDirectory; } AndroidDirectoryProvider(String prefName, File baseDir); @Override File getStoreDirectory(); @Override File getBackupDirectory(); @Override File getLockDirectory();  }
@Test public void storePath() { File storeDirectory = provider.getStoreDirectory(); assertTrue(storeDirectory.exists()); assertTrue(storeDirectory.canRead()); assertTrue(storeDirectory.canWrite()); String actualPath = storeDirectory.getAbsolutePath(); String expectedPath = baseDir.getAbsolutePath() + File.separator + AndroidDirectoryProvider.PREFERENCES_ROOT_DIRECTORY_NAME + File.separator + PREF_NAME + File.separator + AndroidDirectoryProvider.STORE_DIRECTORY_NAME; assertEquals(expectedPath, actualPath); }