### Question:
ConditionServiceImpl extends BaseOpenmrsService implements ConditionService { @Override @Transactional(readOnly = true) public Condition getConditionByUuid(String uuid) { return conditionDAO.getConditionByUuid(uuid); }  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 getConditionByUuid_shouldFindConditionGivenValidUuid() { String uuid="2cc6880e-2c46-15e4-9038-a6c5e4d22fb7"; Condition condition = conditionService.getConditionByUuid(uuid); Assert.assertEquals(uuid, condition.getUuid()); }
@Test public void getConditionByUuid_shouldReturnNullIfNoObjectFoundWithGivenUuid() { Assert.assertNull(conditionService.getConditionByUuid("invalid uuid")); }