assertEquals(1, dao.count(Country.class));
}
@Test
public void update_links() {
Base b = dao.fetchLinks(dao.fetch(Base.class, "red"), "country");
int lv = b.getLevel();
b.setLevel(45);
b.getCountry().setName("ABC");
dao.updateLinks(b, "country");
b = dao.fetch(Base.class, "red");
assertEquals(lv, b.getLevel());
Country c = dao.fetch(Country.class, b.getCountryId());
assertEquals("ABC", c.getName());
}