Object location1 = context.lookup(RemoteJndiBindingTest.JNDI_BINDING_1);
TestCase.assertNotNull("Expected remote binding in JNDI at " + RemoteJndiBindingTest.JNDI_BINDING_1
+ " was not found", location1);
TestCase.assertTrue(location1 instanceof BindingTest);
BindingTest test1 = (BindingTest) location1;
String result1 = test1.echo(testMessage);
TestCase.assertEquals(testMessage, result1);
// Lookup JNDI Binding Test EJB at Location 2, and invoke
Object location2 = context.lookup(RemoteJndiBindingTest.JNDI_BINDING_2);
TestCase.assertNotNull("Expected remote binding in JNDI at " + RemoteJndiBindingTest.JNDI_BINDING_2