@Test
public void shouldSyncFormsAndChildren() throws Exception {

    Child child1 = mock(Child.class);
    Child child2 = mock(Child.class);
    given(childRepository.toBeSynced()).willReturn(newArrayList(child1, child2));
    syncAllDataAsyncTask.setContext(rapidFtrActivity);
    syncAllDataAsyncTask.execute();
    verify(formService).downloadPublishedFormSections();
    verify(childSyncService).sync(child1, currentUser);
    verify(childSyncService).sync(child2, currentUser);
}