@Test
public void createEndpointWithTransferExchange() throws Exception {
HazelcastComponent hzlqComponent = new HazelcastComponent(context);
hzlqComponent.start();
HazelcastSedaEndpoint hzlqEndpoint = (HazelcastSedaEndpoint) hzlqComponent.createEndpoint("hazelcast:seda:foo?transferExchange=true");
assertEquals("Invalid queue name", "foo", hzlqEndpoint.getConfiguration().getQueueName());
assertTrue("Default value of concurrent consumers is invalid", hzlqEndpoint.getConfiguration().isTransferExchange());
hzlqEndpoint = (HazelcastSedaEndpoint) hzlqComponent.createEndpoint("hazelcast:seda:foo?transferExchange=false");
assertEquals("Invalid queue name", "foo", hzlqEndpoint.getConfiguration().getQueueName());
assertFalse("Default value of concurrent consumers is invalid", hzlqEndpoint.getConfiguration().isTransferExchange());
hzlqComponent.stop();
}