### Question:
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public void afterCompletion(MessageContext messageContext, Object o, Exception e) { backend.clear(); } 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 shouldCleanupBackendAfterInvocation() throws Exception { unit.afterCompletion(mock(MessageContext.class), new Object(), mock(Exception.class)); verify(backend).clear(); }