}
}
public void testCreateAndUpdateAndRemoveShape() throws Exception {
log.warn("Creating a shape");
Shape shape = new Shape("shape", "description");
dao.saveShape(shape);
Integer id = shape.getId();
shape = dao.getShape(id);
assertEquals(shape.getName(), "shape");
assertEquals(shape.getDescription(), "description");
log.warn("Shape created: " + shape);
shape.setName("newshape");
shape.setDescription("other description");
dao.saveShape(shape);
log.warn("Shape updated");
shape = dao.getShape(id);
assertEquals(shape.getName(), "newshape");
assertEquals(shape.getDescription(), "other description");
log.warn("Shape: " + shape);
dao.removeShape(shape);
log.warn("Shape removed");
}