@DirtiesContext
public void testRegisterFromSimpleRequestString() throws Exception {
MessagingTemplate gateway = new MessagingTemplate();
gateway.setReceiveTimeout(500L);
gateway.afterPropertiesSet();
JobConfigurationRequest request = new JobConfigurationRequest();
request.setXml(IOUtils.toString(new ClassPathResource("/staging-context.xml").getInputStream()));
gateway.convertAndSend(requests, request);
assertNotNull("Time out waiting for reply", result);