### Question:
HibernateSessionDAO extends HibernatePersistentObjectDAO<Session> implements SessionDAO { @Override public void deleteCurrentNodeSessions() { try { bulkUpdate(" set deleted=1 where node=?1 and deleted=0", new Object[] { SystemInfo.get().getInstallationId() }); } catch (PersistenceException e) { log.warn(e.getMessage(), e); } try { bulkUpdate(" set status=" + Session.STATUS_EXPIRED + " where node=?1 and status=?2", new Object[] { SystemInfo.get().getInstallationId(), Session.STATUS_OPEN }); } catch (PersistenceException e) { log.error(e.getMessage(), e); } } protected  HibernateSessionDAO(); @Override void deleteCurrentNodeSessions(); @Override int countSessions(Long tenantId, Integer status); @Override Session findBySid(String sid); @Override void initialize(Session session); @Override List<Session> findByNode(String node); @Override void cleanOldSessions(int ttl);  }### Answer:
@Test public void testDeleteCurrentNodeSessions() { Assert.assertEquals(1, dao.countSessions(1L, null)); dao.deleteCurrentNodeSessions(); Assert.assertEquals(0, dao.countSessions(1L, null)); }