### Question:
DBPortalInfoManager extends DBManager<PortalInfo> implements PortalInfoManager { @Override public final boolean deletePortalInfo(final PortalScheme scheme) throws PortalInfoManagerException { LOGGER.debug("deleting Portal Info: {}", scheme.name()); try { return super.delete(scheme.name()); } catch (DBManagerException e) { throw new PortalInfoManagerException(e); } } DBPortalInfoManager(final SessionFactory factory); @Override final PortalInfo savePortalInfo(final PortalInfo info); @Override final void updatePortalInfo(final PortalInfo info); @Override final PortalInfo getPortalInfo(final PortalScheme scheme); @Override final boolean deletePortalInfo(final PortalScheme scheme); @Override final String getPortalUrlBase();  }### Answer:
@Test public final void deletePortalInfo() { final PortalScheme scheme = PortalScheme.HTTPS; LOGGER.debug("creating DBPortalInfoManager"); PortalInfoManager dbpim = new DBPortalInfoManager(sessionFactory); LOGGER.debug("creating a Portal Info"); PortalInfo info = new PortalInfo(); info.setSchemeName(scheme); dbpim.savePortalInfo(info); LOGGER.debug("saving a Portal Info"); PortalInfo info2 = dbpim.getPortalInfo(scheme); Assert.assertEquals(info2.getSchemeName(), scheme.name()); LOGGER.debug("deleting a Portal Info"); dbpim.deletePortalInfo(scheme); PortalInfo info3 = dbpim.getPortalInfo(scheme); Assert.assertNull(info3); }