final SessionBean sessionBean = new SessionBean("SessionBean", "org.superbiz.SessionBean", SessionType.STATELESS);
sessionBean.setMappedName("MappedName");
ejbJar.addEnterpriseBean(sessionBean);
final EjbDeployment ejbDeployment = new EjbDeployment("containerId", "deploymentId", "SessionBean");
openejbJar.addEjbDeployment(ejbDeployment);
appModule.getEjbModules().add(new EjbModule(ejbJar, openejbJar));
appModule = new MappedNameBuilder().deploy(appModule);
final EjbDeployment retrievedDeployment = appModule.getEjbModules().get(0).getOpenejbJar().getDeploymentsByEjbName().get("SessionBean");