// get metadata
JBossSessionBeanMetaData metadata = this.sessionContainer.getMetaData();
// Lookup the remote bean
Context ctx = new InitialContext();
MyRemote remote = (MyRemote) ctx.lookup(metadata.getJndiName());
testPassByValueForMethodParameters(remote);
}