//Read the whole model and make sure it looks as expected
ModelNode model = services.readWholeModel();
Assert.assertTrue(model.get(SUBSYSTEM).hasDefined(OtherServicesSubsystemExtension.SUBSYSTEM_NAME));
ModelNode path = model.require(PATH);
Assert.assertEquals(2, path.asList().size());
Assert.assertEquals("p1", path.require("p1").require("name").asString());
Assert.assertEquals(new File(".").getAbsolutePath(), path.require("p1").require("path").asString());
Assert.assertFalse(path.get("p1", "relative-to").isDefined());
Assert.assertEquals("p2", path.require("p2").require("name").asString());
Assert.assertEquals("target", path.require("p2").require("path").asString());