}
}
public void testCreateAndUpdateAndRemoveWidth() throws Exception {
log.warn("Creating a width");
Width width = new Width(new BigDecimal("666.666"));
dao.saveWidth(width);
Integer id = width.getId();
width = dao.getWidth(id);
assertEquals(width, new Width(new BigDecimal("666.666")));
log.warn("Width created: " + width);
width.setValue(new BigDecimal("333.333"));
dao.saveWidth(width);
log.warn("Width updated");
width = dao.getWidth(id);
assertEquals(width, new Width(new BigDecimal("333.333")));
log.warn("Width: " + width);
dao.removeWidth(width);
log.warn("Width removed");
}