assertEquals("bar", System.getProperty("placeholder")); // the configured one
}
@Test
public void simpleRead() throws IOException, OpenEJBException {
final Openejb openejb = JSonConfigReader.read(Openejb.class, Thread.currentThread().getContextClassLoader().getResource(config()).openStream());
assertEquals(1, openejb.getResource().size());
final Resource resource = openejb.getResource().iterator().next();
assertEquals("json-datasource", resource.getId());
assertTrue("123".equals(resource.getProperties().getProperty("MaxActive")));
assertTrue("jdbc:hsqldb:mem:json".equals(resource.getProperties().getProperty("JdbcUrl")));
assertEquals(1, openejb.getDeployments().size());
assertEquals("apps", openejb.getDeployments().iterator().next().getDir());
assertEquals(1, openejb.getContainer().size());
final Container container = openejb.getContainer().iterator().next();
assertEquals("STATELESS", container.getType());
assertEquals("10 seconds", container.getProperties().getProperty("AccessTimeout"));
}