DataMapper am = new ActiveMapper(Beer.class);
am.setDataSource(jdbcTemplate.getDataSource());
am.afterPropertiesSet();
Beer b = new Beer();
b.setBrand("Heineken");
am.save(b);
assertNotNull(b.getId());
assertEquals("new beer is in db", 1, jdbcTemplate.queryForInt("select count(*) from beers where brand = 'Heineken'"));
}
}