Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred");
}
@Test
public void testHelloWorldMultipleServices() throws Exception {
HelloWorldClient helloWorldClientA = domainA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices");
HelloWorldClient helloWorldClientA2 = domainA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices2");
HelloWorldClient helloWorldClientB = domainB.getService(HelloWorldClient.class, "BHelloWorldClientMultipleServices");
Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred");
Assert.assertEquals(helloWorldClientA2.getGreetings("fred"), "Hello fred");
Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred");
}