* </pre>
*/
@Test
public void saveParentWithOneChildFirst() {
Parent parent = new Parent();
Child child1 = new Child();
parent.getChildren().add(child1);
// Save parent with 1 child in one go
parent = indexColumnTesterService.save(parent);
Child child2 = new Child();
parent.getChildren().add(child2);
// Save parent again with second child
parent = indexColumnTesterService.save(parent);
Parent savedParent = indexColumnTesterService.getParentById(parent.getId());
assertEquals("2 children added to parent and saved, but after re-loading number of chilren different",
2, savedParent.getChildren().size()
);
}