### Question:
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleFault(MessageContext messageContext, Object o) { return handleResponse(messageContext, o); } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); @Override boolean handleRequest(MessageContext messageContext, Object o); @Override boolean handleResponse(MessageContext messageContext, Object o); @Override boolean handleFault(MessageContext messageContext, Object o); @Override void afterCompletion(MessageContext messageContext, Object o, Exception e);  }### Answer:
@Test public void renderTpicContextToResultForFaults() throws Exception { backend.put("our key", "is our value"); final StringWriter writer = new StringWriter(); final SoapHeader soapHeader = mock(SoapHeader.class); when(((SoapMessage) messageContext.getResponse()).getSoapHeader()).thenReturn(soapHeader); when(soapHeader.getResult()).thenReturn(new StreamResult(writer)); unit.handleFault(messageContext, new Object()); assertThat(writer.toString(), containsString("<entry key=\"our key\">is our value</entry>")); }