}
}
public void testCreateAndUpdateAndRemoveColour() throws Exception {
log.warn("Creating a colour");
Colour colour = new Colour("colour", "description");
dao.saveColour(colour);
Integer id = colour.getId();
colour = dao.getColour(id);
assertEquals(colour.getName(), "colour");
assertEquals(colour.getDescription(), "description");
log.warn("Colour created: " + colour);
colour.setName("newcolour");
colour.setDescription("other description");
dao.saveColour(colour);
log.warn("Colour updated");
colour = dao.getColour(id);
assertEquals(colour.getName(), "newcolour");
assertEquals(colour.getDescription(), "other description");
log.warn("Colour: " + colour);
dao.removeColour(colour);
}