@Test
public void shouldSyncAllChildrenForGivenUser() throws Exception {

    Child child = mock(Child.class);
    given(childRepository.currentUsersUnsyncedRecords()).willReturn(newArrayList(child));
    task.onPreExecute();
    task.execute();
    verify(childSyncService).sync(child, currentUser);
}