@Test
public void shouldCreateNewChildIfThereIsNoID() throws Exception {

    Child child = new Child("id1", "user1", "{ 'test1' : 'value1' }");
    getFakeHttpLayer().addHttpResponseRule("http://whatever/api/children", "{ 'test1' : 'value2', '_id' : 'abcd1234'}");
    child = genericSyncService.sync(child, "/api/children");
    verify(repository).createOrUpdateWithoutHistory(child);
}