factoryBean.afterPropertiesSet(); // init factory bean
// test requestor if it's correctly configured
Requestor requestor = factoryBean.getRequestor();
assertTrue(requestor instanceof MultiplexingRequestor);
MultiplexingRequestor mpxRequestor = (MultiplexingRequestor) requestor;
// expected: persistent delivery
assertEquals(DeliveryMode.PERSISTENT, mpxRequestor.getDeliveryMode());
assertEquals(5000, mpxRequestor.getTimeToLive());
}