@Test
public void shouldIgnoreNonDirectHandlerIfDirectOneRegistered() throws Exception {

    TestComponentAHandler testComponentAHandler = new TestComponentAHandler();
    TestDirectComponentAHandler testDirectComponentAHandler = new TestDirectComponentAHandler();
    createRegistryWith(testDirectComponentAHandler, testComponentAHandler);
    final HandlerMethod handlerMethod = registry.get(COMMAND_NAME);
    assertHandlerMethodInvokesHandler(handlerMethod, testDirectComponentAHandler);
}