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