}
}
public void testCreateAndUpdateAndRemoveLength() throws Exception {
log.warn("Creating a length");
Length length = new Length(new BigDecimal("111"));
dao.saveLength(length);
Integer id = length.getId();
length = dao.getLength(id);
assertEquals(length, new Length(new BigDecimal("111")));
log.warn("Length created: " + length);
length.setValue(new BigDecimal("222"));
dao.saveLength(length);
log.warn("Length updated");
length = dao.getLength(id);
assertEquals(length, new Length(new BigDecimal("222")));
log.warn("Length: " + length);
dao.removeLength(length);
log.warn("Length removed");
}