### Question:
HibernateWebServiceClientDefinitionDao extends HibernateDaoSupport implements WebServiceClientDefinitionDao { public WebServiceClientDefinition getWebServiceClientDefinition( ServiceDefinition serviceDefinition) { LOG.debug("get WebServiceClientDefinition(serviceDefinition = " + serviceDefinition + ")"); WebServiceClientDefinition webServiceClientDefinition = getWebServiceClientDefinition(serviceDefinition.getKey()); LOG.debug("get WebServiceClientDefinition(serviceDefinition = " + serviceDefinition + ") = " + webServiceClientDefinition); return webServiceClientDefinition; }  WebServiceClientDefinition getWebServiceClientDefinition(
            ServiceDefinition serviceDefinition); WebServiceClientDefinition getWebServiceClientDefinition(String key);  }### Answer:
@Test public void testReadSucceeds() throws Exception { WebServiceClientDefinition wsd = dao.getWebServiceClientDefinition("4"); assertNotNull(wsd); assertTrue(wsd.isValid()); }
@Test public void testReadFails() throws Exception { WebServiceClientDefinition wsd = dao.getWebServiceClientDefinition("1"); assertNull(wsd); }