@Test
public void testRmi() throws Exception {
// Create a new camel context to send the request so we can test the service which is deployed into a container
CamelContext myContext = new DefaultCamelContext();
ProducerTemplate myTemplate = myContext.createProducerTemplate();
myTemplate.start();
try {
System.out.println("Calling on port " + port);
String out = myTemplate.requestBody("rmi://localhost:" + port + "/helloServiceBean", "Camel", String.class);
assertEquals("Hello Camel", out);