### Question:
SoapHeaderTransport { public Map<String, String> parseTpicHeader(final Element element) { return parseTpicHeader(ELEMENT_UNMARSHALLER, element); } SoapHeaderTransport(); Map<String, String> parseSoapHeader(final Element soapHeader); Map<String, String> parseTpicHeader(final Element element); Map<String, String> parseTpicHeader(final Source source); void renderSoapHeader(final Map<String, String> context, final SOAPHeader soapHeader); void renderSoapHeader(final Map<String, String> context, final Result result);  }### Answer:
@Test public void parseTpicHeaderToEmptyMapIfNotParsable() throws SOAPException { assertThat(unit.parseTpicHeader(soapMessage.getSOAPHeader()), equalTo(Collections.<String, String>emptyMap())); }
@Test public void returnEmptyMapIfSourceIsNull() { final Map<String, String> stringStringMap = unit.parseTpicHeader((Source) null); assertThat(stringStringMap.size(), is(0)); }
@Test public void parseSourceIntoTpicMap() { final String header = "<tpic xmlns=\"http: final Map<String, String> contextMap = unit.parseTpicHeader(new StreamSource(new StringReader(header))); assertThat(contextMap, hasEntry("myKey", "myValue")); assertThat(contextMap.size(), is(1)); }