### Question:
ConditionServiceImpl extends BaseOpenmrsService implements ConditionService { @Override @Transactional(readOnly = true) public List<Condition> getActiveConditions(Patient patient) { return conditionDAO.getActiveConditions(patient); }  void setConditionDAO(ConditionDAO conditionDAO); ConditionDAO getConditionDAO(); @Override Condition saveCondition(Condition condition); @Override @Transactional(readOnly = true) Condition getConditionByUuid(String uuid); @Override @Transactional(readOnly = true) Condition getCondition(Integer conditionId); @Override @Transactional(readOnly = true) List<Condition> getActiveConditions(Patient patient); @Override Condition voidCondition(Condition condition, String voidReason); @Override Condition unvoidCondition(Condition condition); @Override void purgeCondition(Condition condition);  }### Answer:
@Test public void getActiveConditions_shouldGetActiveConditions() { List<Condition> activeConditions = conditionService.getActiveConditions(patientService.getPatient(2)); Assert.assertTrue(activeConditions.size() == 2); Assert.assertEquals("2cc6880e-2c46-11e4-9138-a6c5e4d20fb7",activeConditions.get(0).getUuid()); Assert.assertEquals("2cc6880e-2c46-15e4-9038-a6c5e4d22fb7", activeConditions.get(1).getUuid()); }