@Test
public void test_two_interceptors() throws ProtocolException {

    List<StanzaHandlerInterceptor> interceptors = new ArrayList<>();
    interceptors.add(new InterceptorMock());
    interceptors.add(new InterceptorMock());
    new SimpleStanzaHandlerInterceptorChain(stanzaHandler, interceptors).intercept(stanza, serverRuntimeContext,
            false, sessionContext, sessionStateHolder, firstStanzaBroker);
    verify(stanzaHandler).execute(stanza, serverRuntimeContext, false, sessionContext, sessionStateHolder,
            firstStanzaBroker);
    assertTrue(((InterceptorMock) interceptors.get(0)).intercepted);
    assertTrue(((InterceptorMock) interceptors.get(1)).intercepted);
}