### Question:
DAOCustomerImpl extends AbstractDAO<CustomerEntity, JPACustomerEntity> implements DAOCustomer { @Override public List<CustomerEntity> getAllActiveCustomers() { return this.checkEntityList(this.queryCustomer().active.eq(true).findList(), CustomerEntity.class); }  @Override List<CustomerEntity> getAllActiveCustomers(); @Override CustomerEntity getEntityInstance();  }### Answer:
@Test public void getAllActiveCustomers_noCustomers() { List<CustomerEntity> customers = DAOCustomerImplTest.daoCustomerImpl.getAllActiveCustomers(); Assert.assertEquals(customers.size(), 0); }
@Test public void getAllActiveCustomers_noActiveCustomers() { Ebean.beginTransaction(); JPACustomerEntity customer = new JPACustomerEntity(); customer.setUID(DAOCustomerImplTest.inactiveObjUid); customer.setName("Test Customer 0"); Ebean.commitTransaction(); List<CustomerEntity> customers = DAOCustomerImplTest.daoCustomerImpl.getAllActiveCustomers(); Assert.assertEquals(customers.size(), 0); }
@Test public void getAllActiveCustomers() { Ebean.beginTransaction(); JPACustomerEntity customer = new JPACustomerEntity(); customer.setUID(DAOCustomerImplTest.existingObjUid1); customer.setName("Test Customer 1"); DAOCustomerImplTest.daoCustomerImpl.create(customer); customer = new JPACustomerEntity(); customer.setUID(DAOCustomerImplTest.existingObjUid2); customer.setName("Test Customer 2"); DAOCustomerImplTest.daoCustomerImpl.create(customer); Ebean.commitTransaction(); List<CustomerEntity> customers = DAOCustomerImplTest.daoCustomerImpl.getAllActiveCustomers(); Assert.assertEquals(customers.size(), 2); }