### Question:
JaxWsHandler extends SoapClientHandler<BindingProvider> { @Override public String getEndpointAddress(BindingProvider soapClient) { return (String) soapClient.getRequestContext().get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY); } @Inject protected  JaxWsHandler(Provider<JaxWsSoapContextHandler> contextHandlerProvider); @Override void setEndpointAddress(BindingProvider soapClient, String endpointAddress); @Override Object getHeader(BindingProvider soapClient, String headerName); @Override void clearHeaders(BindingProvider soapClient); @Override void setHeader(BindingProvider soapClient, String namespace, String headerName,
      Object headerValue); void setHeaderChildString(BindingProvider soapClient, final String headerName,
      String childNamespace, String childName, String childValue); @Override void putAllHttpHeaders(BindingProvider soapClient, Map<String, String> headersMap); @Override void setCompression(BindingProvider soapClient, boolean compress); @Override BindingProvider createSoapClient(SoapServiceDescriptor soapServiceDescriptor); @Override void setRequestTimeout(BindingProvider bindingProvider, int timeout); @Override RemoteCallReturn invokeSoapCall(SoapCall<BindingProvider> soapCall); @Override String getEndpointAddress(BindingProvider soapClient); @Override SOAPHeaderElement createSoapHeaderElement(QName qName);  }### Answer:
@Test public void testGetEndpointAddress() { String existingEndpointAddress = "http: when(mockSoapClient.getRequestContext()).thenReturn(mockRequestContext); when(mockRequestContext.get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY)) .thenReturn(existingEndpointAddress); assertEquals(existingEndpointAddress, jaxWsHandler.getEndpointAddress(mockSoapClient)); }