if (log.isDebugEnabled()) { log.debug(d); }  assertNotNull(d);
assertTrue(d != null);
    public void testGetUserInvalid() throws Exception {        try {            user = dao.getUser("badusername");            fail("'badusername' found in database, failing test...");        } catch (DataAccessException d) {            if (log.isDebugEnabled()) {                log.debug(d);            }            assertNotNull(d);        }    }