### Question:
SyncAuditServiceImpl extends BaseOpenmrsService implements SyncAuditService { @Override public AuditMessage getMessageByUuid(String uuid) throws APIException { return dao.getMessageByUuid(uuid); }  void setDao(SyncAuditDao dao); @Override AuditMessage getMessageByUuid(String uuid); @Override AuditMessage getMessageById(Integer id); @Override String getJsonMessageByUuid(String uuid); @Override String getJsonMessageById(Integer id); @Override String getPaginatedMessages(Integer page, Integer pageSize, Boolean success, String operation,
                                       String resourceName, String creatorInstanceId); @Override AuditMessage saveAuditMessageDuringSync(AuditMessage auditMessage); @Override AuditMessage saveAuditMessage(AuditMessage auditMessage); @Override AuditMessage setNextAudit(AuditMessage current, AuditMessage next); @Override Set<String> getAllCreatorIds(); @Override AuditMessage getMessageByMergeConflictUuid(String uuid); @Override String getJsonMessage(AuditMessage message);  }### Answer:
@Test public void getMessageByUuid() throws ParseException { AuditMessage expected = prepareAuditMessage(true); when(dao.getMessageByUuid(AUDIT_UUID)).thenReturn(expected); AuditMessage fetched = auditService.getMessageByUuid(AUDIT_UUID); Assert.assertEquals(expected, fetched); }