dataSource.getConnection().close();
MockInitialContextFactory.install(Collections.singletonMap("openejb/Resource/TestDs", dataSource));
assertSame(dataSource, new InitialContext().lookup("openejb/Resource/TestDs"));
final CoreContainerSystem containerSystem = new CoreContainerSystem(new IvmJndiFactory());
containerSystem.getJNDIContext().bind("openejb/Resource/TestDs", dataSource);
SystemInstance.get().setComponent(ContainerSystem.class, containerSystem);
properties.put("DataSource", "TestDs");
properties.put("UseDatabaseLock", "false");