return registerCommandGateway(gatewayInterface, null);
}
@Override
public <T> T registerCommandGateway(Class<T> gatewayInterface, final T stubImplementation) {
GatewayProxyFactory factory = new StubAwareGatewayProxyFactory(stubImplementation,
AnnotatedSagaTestFixture.this.commandBus);
final T gateway = factory.createGateway(gatewayInterface);
registerResource(gateway);
return gateway;
}