sendAndReceive(true, "testreply");
}
public void sendAndReceive(boolean synchronous, String replyDestination) throws Exception {
BusFactory bf = BusFactory.newInstance();
Bus bus = bf.createBus();
BusFactory.setDefaultBus(bus);
EndpointReferenceType target = new EndpointReferenceType();
connectionFactory = new PooledConnectionFactory(BROKER_URI);
TestReceiver receiver = new TestReceiver(connectionFactory, SERVICE_QUEUE, true);