### Question:
HibernateConditionDAO implements ConditionDAO { @Override public Condition getCondition(Integer conditionId) { return (Condition) sessionFactory.getCurrentSession().get(Condition.class, conditionId); }  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 shouldGetCondition() { int id = 1; ConditionClinicalStatus expectedClinicalStatus = ConditionClinicalStatus.INACTIVE; ConditionVerificationStatus expectedVerificationStatus = ConditionVerificationStatus.PROVISIONAL; Condition condition = dao.getCondition(id); assertEquals(expectedClinicalStatus, condition.getClinicalStatus()); assertEquals(expectedVerificationStatus, condition.getVerificationStatus()); assertEquals(1, (int) condition.getId()); assertEquals(null, condition.getEndDate()); assertEquals(1, (int) condition.getCreator().getId()); }