URL ddResource = getClass().getResource("ejb-jar.xml");
assertNotNull(ddResource);
EjbJarDD xml = EjbJarDDObjectFactory.parse(ddResource);
assertEquals("Whitespace", xml.getDisplayName());
assertEquals(1, xml.getEnterpriseBeans().getEnterpriseBeans().size());
EnterpriseBean bean = xml.getEnterpriseBeans().getEnterpriseBeans().iterator().next();
assertTrue(bean instanceof SessionEnterpriseBean);
assertEquals("WhitespaceBean", bean.getEjbName());
assertEquals(1, bean.getEnvEntries().size());
EnvEntry envEntry = bean.getEnvEntries().iterator().next();
assertEquals("whitespace", envEntry.getEnvEntryName());
assertEquals("java.lang.String", envEntry.getEnvEntryType());
assertEquals(" ", envEntry.getEnvEntryValue());
}