assertEquals(6, b.getPlatoons().size());
}
@Test
public void update_with() {
Base b = dao.fetchLinks(dao.fetch(Base.class, "blue"), "platoons");
b.setLevel(45);
for (Iterator<Platoon> it = b.getPlatoons().values().iterator(); it.hasNext();) {
it.next().setBaseName("red");
}
dao.updateWith(b, "platoons");
b = dao.fetch(Base.class, "blue");
assertEquals(45, b.getLevel());
b = dao.fetchLinks(dao.fetch(Base.class, "red"), "platoons");
assertEquals(6, b.getPlatoons().size());
}