final Todo todo = ao.create(Todo.class);
todo.setDescription("Some todo");
todo.save();
Comment comment = ao.create(Comment.class);
comment.setTodo(todo);
comment.setText("Comment text 3");
comment.save();
comment = ao.create(Comment.class);
comment.setTodo(todo);
comment.setText("Comment text 4");
comment.save();
ao.flushAll(); // clear all caches
final List<Todo> all = todoService.findAll();
assertEquals(2, all.size());