@Test
public void should_not_delete_when_tracing_exists_and_not_synced_yet() throws Exception {

    long recordId = 123L;
    Tracing deleteTracing = new Tracing(recordId);
    deleteTracing.setSynced(false);
    when(tracingDao.getTracingById(recordId)).thenReturn(deleteTracing);
    Tracing actual = tracingService.deleteByRecordId(recordId);
    verify(tracingDao, never()).delete(deleteTracing);
    assertNull(actual);
}