@Test
public void shouldReturnMethodOfTheRegisteredSynchronousHandler() {

    final TestCommandHandlerWithSynchronousHandler testCommandHandlerWithSynchronousHandler = new TestCommandHandlerWithSynchronousHandler();
    createRegistryWith(testCommandHandlerWithSynchronousHandler);
    final HandlerMethod handlerMethod = registry.get(COMMAND_NAME);
    assertHandlerMethodInvokesHandler(handlerMethod, testCommandHandlerWithSynchronousHandler);
    assertLogStatement(COMMAND_NAME);
}