### Question:
HibernateWebServiceServerDefinitionDao extends HibernateDaoSupport implements WebServiceServerDefinitionDao { public WebServiceServerDefinition getWebServiceServerDefinition( ServiceDefinition serviceDefinition) { LOG.debug("get WebServiceServerDefinition(serviceDefinition = " + serviceDefinition + ")"); WebServiceServerDefinition webServiceServerDefinition = getWebServiceServerDefinition(serviceDefinition.getKey()); LOG.debug("get WebServiceServerDefinition(serviceDefinition = " + serviceDefinition + ") = " + webServiceServerDefinition); return webServiceServerDefinition; }  WebServiceServerDefinition getWebServiceServerDefinition(
            ServiceDefinition serviceDefinition); WebServiceServerDefinition getWebServiceServerDefinition(String key);  }### Answer:
@Test public void testReadSucceeds() throws Exception { WebServiceServerDefinition wsd = dao.getWebServiceServerDefinition("3"); assertNotNull(wsd); assertTrue(wsd.isValid()); }
@Test public void testReadFails() throws Exception { WebServiceServerDefinition wsd = dao.getWebServiceServerDefinition("1"); assertNull(wsd); }