public void testSimpleFind() throws Exception {
jdbcTemplate.execute("insert into beers (id, brand) values(12, 'Amstel')");
DataMapper am = new ActiveMapper(Beer.class);
am.setDataSource(jdbcTemplate.getDataSource());
am.afterPropertiesSet();
Beer b = (Beer) am.find(new Long(12));
assertEquals("correct beer found", "Amstel", b.getBrand());
}
public void testSimpleAdd() throws Exception {
DataMapper am = new ActiveMapper(Beer.class);