throws Exception
{
MockControl control = MockControl.createControl(WebAnnotations.class);
WebAnnotations webAnnotations = (WebAnnotations) control.getMock();
WebServiceAnnotation serviceAnnotation = new WebServiceAnnotation();
webAnnotations.getWebServiceAnnotation(Echo.class);
control.setDefaultReturnValue(serviceAnnotation);
webAnnotations.hasWebServiceAnnotation(Echo.class);
control.setDefaultReturnValue(true);
webAnnotations.hasWebServiceAnnotation(EchoImpl.class);
control.setDefaultReturnValue(true);
webAnnotations.hasHandlerChainAnnotation(EchoImpl.class);
control.setReturnValue(false);
webAnnotations.hasSOAPBindingAnnotation(Echo.class);
control.setReturnValue(false);
webAnnotations.hasWebServiceAnnotation(EchoImpl.class);
control.setReturnValue(true);
serviceAnnotation = new WebServiceAnnotation();
serviceAnnotation.setServiceName("Echo");
serviceAnnotation.setTargetNamespace("urn:Echo");
serviceAnnotation.setEndpointInterface(Echo.class.getName());
webAnnotations.getWebServiceAnnotation(EchoImpl.class);
control.setReturnValue(serviceAnnotation);
webAnnotations.getWebServiceAnnotation(EchoImpl.class);
control.setReturnValue(serviceAnnotation);