HelloWorld { public String hello(String message) { return "Hello " + message; }  String hello(String message);  }
@Test public void hello() throws NamingException { HelloWorld helloWorld = (HelloWorld) ctx.lookup("java:global/classes/HelloWorld"); assertNotNull(helloWorld); String expected = "World"; String hello = helloWorld.hello(expected); assertNotNull(hello); assertTrue(hello.endsWith(expected)); }