verify(mockUnitOfWork).attachResource(ParameterResolverFactory.class.getName(), parameterResolverFactory);
}
@Test
public void testHandlerDispatching_WithCustomCommandName() throws Throwable {
Object actualReturnValue = testSubject.handle(new GenericCommandMessage("almostLong", 1L, null), mockUnitOfWork);
assertEquals(1L, actualReturnValue);
assertEquals(0, mockTarget.voidHandlerInvoked);
assertEquals(0, mockTarget.returningHandlerInvoked);
assertEquals(1, mockTarget.almostDuplicateReturningHandlerInvoked);