### Question:
HibernateConditionDAO implements ConditionDAO { @Override public Condition getConditionByUuid(String uuid) { return (Condition) sessionFactory.getCurrentSession().createQuery("from Condition c where c.uuid = :uuid") .setString("uuid", uuid).uniqueResult(); }  void setSessionFactory(SessionFactory sessionFactory); @Override Condition saveCondition(Condition condition); @Override Condition getCondition(Integer conditionId); @Override Condition getConditionByUuid(String uuid); @Override List<Condition> getConditionHistory(Patient patient); @Override List<Condition> getActiveConditions(Patient patient); @Override void deleteCondition(Condition condition);  }### Answer:
@Test public void shouldGetConditionByUuid() { String uuid = "2cc6880e-2c46-15e4-9038-a6c5e4d22fb7"; ConditionClinicalStatus expectedClinicalStatus = ConditionClinicalStatus.INACTIVE; ConditionVerificationStatus expectedVerificationStatus = ConditionVerificationStatus.PROVISIONAL; Condition condition = dao.getConditionByUuid(uuid); assertEquals(condition.getClinicalStatus(), expectedClinicalStatus); assertEquals(condition.getVerificationStatus(), expectedVerificationStatus); assertEquals(1, (int) condition.getId()); assertEquals(null, condition.getEndDate()); assertEquals(1, (int) condition.getCreator().getId()); }