@Test
public void namedHandlerShouldTakePriorityOverAllHandler() {

    final TestAllEventsHandler testAllEventsHandler = new TestAllEventsHandler();
    final TestCommandHandler testCommandHandler = new TestCommandHandler();
    createRegistryWith(testAllEventsHandler, testCommandHandler);
    final HandlerMethod handlerMethod = registry.get(COMMAND_NAME);
    assertHandlerMethodInvokesHandler(handlerMethod, testCommandHandler);
    assertThat(testAllEventsHandler.firstRecordedEnvelope(), nullValue());
    assertLogStatement("*");
}