ServiceFormRepository { protected List<Service> listAllActive() throws LMISException { List<Service> activeService = dbUtil.withDao(Service.class, dao -> dao.queryBuilder().where().eq("active", true).query()); return activeService; } @Inject  ServiceFormRepository(Context context); void batchCreateOrUpdateServiceList(final List<Service> serviceList); void createOrUpdate(Service service); Service queryByCode(final String serviceCode); List<Service> listAllActiveWithProgram(Program program);  }
@Test public void shouldListAllActive() throws LMISException { List<Service> result = serviceFormRepository.listAllActive(); assertThat(result, is(empty())); }