String requestDestinationName = "SomeRequestDestination";
String responseDestinationName = "SomeResponseDestination";
String jmsBindingName = "MyJMSBinding";
// Create a JMS Binding with the required test parameters
JMSBinding jmsBinding = new JMSBinding();
jmsBinding.setDestinationCreate(requestCreateMode);
jmsBinding.setResponseDestinationCreate(responseCreateMode);
if (preCreateQueue) {
// jmsBinding.setJmsResourceFactoryName(new JMSResourceFactory(null, null, null));
} else {
// jmsBinding.setJmsResourceFactoryName(MockJMSResourceFactoryQueueNotExist.class.getName());
}
jmsBinding.setDestinationName(requestDestinationName);
jmsBinding.setResponseDestinationName(responseDestinationName);
jmsBinding.setName(jmsBindingName);
// Create the operation
Operation operation = new OperationImpl();
operation.setName("OperationName");