}
@Test
public void testStatefulGetEJBMetaData() throws Exception
{
ValueHolderHome home = lookup("ValueHolderBean/home", ValueHolderHome.class);
EJBMetaData metaData = home.getEJBMetaData();
assertNotNull("metaData is null", metaData);
assertTrue(metaData.isSession());
assertFalse(metaData.isStatelessSession());
Class<?> homeInterfaceClass = metaData.getHomeInterfaceClass();
assertEquals(ValueHolderHome.class, homeInterfaceClass);
Class<?> remoteInterfaceClass = metaData.getRemoteInterfaceClass();
assertEquals(ValueHolder.class, remoteInterfaceClass);
ValueHolderHome otherHome = (ValueHolderHome) metaData.getEJBHome();
exercise(otherHome);
}