@Test
public void shouldApplyAccessControlToInputIfLocalComponent() throws Exception {

    final InterceptorContext inputContext = interceptorContextWithInput(envelope);
    inputContext.setInputParameter("component", "command");
    when(accessControlService.checkAccessControl("command", envelope)).thenReturn(Optional.empty());
    interceptorChain.processNext(inputContext);
    verify(accessControlService).checkAccessControl("command", envelope);
}