### Question:
DBPortalInfoManager extends DBManager<PortalInfo> implements PortalInfoManager { @Override public final PortalInfo getPortalInfo(final PortalScheme scheme) throws PortalInfoManagerException { LOGGER.debug("getting Portal Info: {}", scheme.name()); try { return super.get(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 getPortalInfo() { final PortalScheme scheme = PortalScheme.HTTPS; PortalInfoManager dbpim = new DBPortalInfoManager(sessionFactory); PortalInfo info = new PortalInfo(); info.setSchemeName(scheme); LOGGER.debug("saving a Portal Info"); dbpim.savePortalInfo(info); LOGGER.debug("retrieving a Portal Info"); PortalInfo info2 = dbpim.getPortalInfo(scheme); Assert.assertEquals(info2.getSchemeName(), scheme.name()); }