@Test
public void insert_links() {
dao.create(Pet.class, true);
dao.create(Master.class, true);
Master m = new Master();
m.setName("zozoh");
m.setPets(new ArrayList<Pet>(2));
Pet pet = new Pet();
pet.setAge(25);
pet.setName("Wendal");
m.getPets().add(pet);
pet = new Pet();
pet.setAge(25);
pet.setName("Juqkai");
m.getPets().add(pet);
dao.insertWith(m, "pets");
assertTrue(m.getId() > 0);
assertEquals(2, dao.count(Pet.class, Cnd.where("masterId", "=", m.getId())));
}