### Question:
AxisHandler extends SoapClientHandler<Stub> { @Override public void clearHeaders(Stub soapClient) { soapClient._setProperty(HTTPConstants.REQUEST_HEADERS, new Hashtable<String, String>()); soapClient.clearHeaders(); } @Inject  AxisHandler(EngineConfigurationFactory engineConfigurationFactory,
      RequestInfoXPathSet requestInfoXPathSet,
      ResponseInfoXPathSet responseInfoXPathSet); @Override void setEndpointAddress(Stub soapClient, String endpointAddress); @Override void setRequestTimeout(Stub soapClient, int timeout); @Override Object getHeader(Stub soapClient, String headerName); @Override void clearHeaders(Stub soapClient); @Override void setHeader(Stub soapClient, String namespace, String headerName,
      Object headerValue); void setHeaderChild(Stub soapClient, String parentHeaderName, String childName,
      Object childValue); @Override void putAllHttpHeaders(Stub soapClient, Map<String, String> headersMap); @Override void setCompression(Stub soapClient, boolean compress); @Override Stub createSoapClient(SoapServiceDescriptor soapServiceDescriptor); @Override RemoteCallReturn invokeSoapCall(SoapCall<Stub> soapCall); @Override String getEndpointAddress(Stub soapClient); @Override javax.xml.soap.SOAPHeaderElement createSoapHeaderElement(QName qName);  }### Answer:
@Test public void testClearHeaders_succeedWhenEmpty() { axisHandler.clearHeaders(stub); assertEquals("stub.getHeaders is not empty after invoking clearHeaders", 0, stub.getHeaders().length); }