DataManager { public Single<List<Cat>> getCats(List<Cat> cats) { return Single.just(cats); } @Inject  DataManager(PreferencesHelper preferencesHelper,
                       AndroidTvBoilerplateService androidTvBoilerplateService); PreferencesHelper getPreferencesHelper(); Single<List<Cat>> getCats(List<Cat> cats);  }
@Test public void getCatsCompletesAndEmitsCats() throws Exception { List<Cat> mockCats = TestDataFactory.makeCats(10); TestSubscriber<List<Cat>> result = new TestSubscriber<>(); mDataManager.getCats(mockCats).subscribe(result); result.assertNoErrors(); result.assertValue(mockCats); }