@Test
public void shouldNotGetIncomingChildrenFromServerIfBlacklisted() throws Exception {

    syncAllDataAsyncTask.setContext(rapidFtrActivity);
    Child child1 = mock(Child.class);
    ArrayList<Child> childList = new ArrayList<Child>();
    childList.add(child1);
    given(childRepository.toBeSynced()).willReturn(childList);
    given(deviceService.isBlacklisted()).willReturn(true);
    syncAllDataAsyncTask.execute();
    verify(childSyncService).sync(child1, currentUser);
    verify(childSyncService, never()).getRecord(any(String.class));
    verify(childSyncService, never()).getIdsToDownload();
}