DvrDataStoreFactory { public DvrDataStore createMasterBackendDataStore() { Log.d( TAG, "createMasterBackendDataStore : enter" ); Log.d( TAG, "createMasterBackendDataStore : exit" ); return new MasterBackendDvrDataStore( api ); } @Inject  DvrDataStoreFactory( final DvrApi api ); DvrDataStore createMasterBackendDataStore();  }
@Test public void testCreateMasterBackendDvrDataStore() { DvrDataStore userDataStore = dvrDataStoreFactory.createMasterBackendDataStore(); assertThat( userDataStore, is( notNullValue() ) ); assertThat( userDataStore, is( instanceOf( MasterBackendDvrDataStore.class ) ) ); }