SOAPHeaderHandler implements SOAPHandler<SOAPMessageContext> { @Override public Set<QName> getHeaders() { LOG.debug("SoapHeaderHandler.getHeaders"); return Collections.emptySet(); }  @Override Set<QName> getHeaders(); @Override boolean handleMessage(SOAPMessageContext messageContext); @Override boolean handleFault(SOAPMessageContext messageContext); @Override void close(MessageContext context);  }
@Test public void testGetHeaders() { SOAPHeaderHandler soapHeaderHandler = new SOAPHeaderHandler(); Set<QName> header = soapHeaderHandler.getHeaders(); assertTrue(header.isEmpty()); }