SearchDataStoreFactory { public SearchDataStore createReadSearchDataStore() { Log.d( TAG, "createReadSearchDataStore : enter" ); SQLiteDatabase db = mOpenHelper.getReadableDatabase(); SearchDataStore searchDataStore = new DbSearchDataStore( db ); Log.d( TAG, "createReadSearchDataStore : exit" ); return searchDataStore; } @Inject  SearchDataStoreFactory( Context context ); SearchDataStore createReadSearchDataStore(); SearchDataStore createWriteSearchDataStore();  }
@Test public void testCreateReadSearchDataStore() throws Exception { SearchDataStore searchDataStore = searchDataStoreFactory.createReadSearchDataStore(); assertThat( searchDataStore, is( notNullValue() ) ); }