HandlerMethod { @Override public String toString() { return format("HandlerMethod[ Class: %s method: %s]", handlerInstance != null ? handlerInstance.getClass().getName() : null, handlerMethod != null ? handlerMethod.getName() : null); } HandlerMethod(final Object object, final Method method, final Class<?> expectedReturnType); @SuppressWarnings("unchecked") Envelope<T> execute(final Envelope<?> envelope); @Override String toString(); boolean isDirect(); Class<?> getPayloadType();  }
@Test public void shouldReturnStringDescriptionOfHandlerInstanceAndMethod() { assertThat(asyncHandlerInstance().toString(), notNullValue()); }