// Get JNDI Context
Context context = new InitialContext();
// Obtain
BusinessInterface1 busiface1 = (BusinessInterface1) context.lookup(jndiNameInterface1);
BusinessInterface2 busiface2 = (BusinessInterface2) context.lookup(jndiNameInterface2);
// Invoke getInvokedBusinessInterface
Class<?> invoked1 = busiface1.getInvokedBusinessInterface();
Class<?> invoked2 = busiface2.getInvokedBusinessInterface();
// Test
TestCase.assertEquals(BusinessInterface1.class, invoked1);
TestCase.assertEquals(BusinessInterface2.class, invoked2);