}
}
public void testCreateAndUpdateAndRemoveQuote() throws Exception {
log.warn("Creating a quote");
Quote quote = new Quote("quote", "description");
dao.saveQuote(quote);
Integer id = quote.getId();
quote = dao.getQuote(id);
assertEquals(quote.getName(), "quote");
assertEquals(quote.getDescription(), "description");
log.warn("Quote created: " + quote);
quote.setName("newquote");
quote.setDescription("other description");
dao.saveQuote(quote);
log.warn("Quote updated");
quote = dao.getQuote(id);
assertEquals(quote.getName(), "newquote");
assertEquals(quote.getDescription(), "other description");
log.warn("Quote: " + quote);
dao.removeQuote(quote);
}