wrapper.setDeploymentSummary(deploymentSummary);
DefaultJndiBindingPolicy policy = new MyDefaultJndiBindingPolicy();
JBossSessionBeanMetaData beanMd = (JBossSessionBeanMetaData)wrapper.getEnterpriseBean("MyBean");
String interfaceName = "testInterface";
beanMd.setBusinessRemotes(new BusinessRemotesMetaData());
beanMd.getBusinessRemotes().add(interfaceName);
JBossSessionPolicyDecorator decorator = new JBossSessionPolicyDecorator(beanMd,policy);
String jndiName = decorator.determineResolvedJndiName(interfaceName);
assertEquals("someEar/someModule/MyBean/testInterface", jndiName);
}