### Question:
SoapServiceClient implements InvocationHandler { public void setEndpointAddress(String endpointAddress) { soapClientHandler.setEndpointAddress(soapClient, endpointAddress); } protected  SoapServiceClient(SoapClientHandlerInterface<T> soapClientHandler,
      T soapClient); @Override Object invoke(Object proxy, final Method method, final Object[] args); void setEndpointAddress(String endpointAddress); Object getSoapClient();  }### Answer:
@Test public void testSetEndpointAddress() { String expectedEndpointAddress = "endpoint"; soapServiceClient.setEndpointAddress(expectedEndpointAddress); verify(soapClientHandler).setEndpointAddress(soapClient, expectedEndpointAddress); }