}
};
@Test
public void test() throws Exception {
final ModelController controller = getController();
final ModelNode address = new ModelNode();
address.add("host", "*");
address.add("server", "[one,two]");
address.add("subsystem", "web");
address.add("connector", "*");
final ModelNode read = new ModelNode();
read.get(OP).set("read-resource");
read.get(OP_ADDR).set(address);
ModelNode result = controller.execute(read, null, null, null);
System.out.println(result);
result = result.get("result");
Assert.assertEquals(4, result.asInt()); // A,B one,two
final ModelNode describe = new ModelNode();
describe.get(OP).set("describe");
describe.get(OP_ADDR).set(address);
result = controller.execute(describe, null, null, null).get("result");
}