@Test
public void should_not_delete_when_case_exist_and_not_synced_yet() throws Exception {

    long recordId = 123L;
    Case deleteCase = new Case(recordId);
    deleteCase.setSynced(false);
    when(caseDao.getCaseById(recordId)).thenReturn(deleteCase);
    Case actual = caseService.deleteByRecordId(recordId);
    verify(caseDao, never()).delete(deleteCase);
    verify(casePhotoDao, never()).deleteByCaseId(recordId);
    assertNull(actual);
}