HealthFacilityServiceRepository { public List<HealthFacilityService> getAll() throws LMISException { return genericDao.queryForAll(); } @Inject  HealthFacilityServiceRepository(Context context); List<HealthFacilityService> getAll();  }
@Test public void shouldGetAllExistentHealthFacilityServices() throws Exception { HealthFacilityServiceRepository healthFacilityServiceRepository = RoboGuice.getInjector(RuntimeEnvironment.application).getInstance(HealthFacilityServiceRepository.class); ArrayList<HealthFacilityService> expectedHealthFacilityServices = PTVUtil.createDummyHealthFacilityServices(); List<HealthFacilityService> actualHealthFacilityServices = healthFacilityServiceRepository.getAll(); assertThat(actualHealthFacilityServices, CoreMatchers.<List<HealthFacilityService>>is(expectedHealthFacilityServices)); }