@Test
public void testLogging() throws Exception {
try (HibernateAuditLogger logger = new HibernateAuditLogger(5, 1)) {
logger.setSessionFactory(getDbConnector().getHibernateSessionFactory());
Collection<AuditLogEntry> logEntries = logger.findAll();
assertEquals(0, logEntries.size());
logger.log("jake", "/Portfolio/XYZ123", "View", true);
logger.log("jake", "/Portfolio/XYZ345", "Modify", "User has no Modify permission on this portfolio", false);