}
private void testReadResource(boolean recursive) throws Exception {
URL mgmtURL = new URL(url.getProtocol(), url.getHost(), MGMT_PORT, MGMT_CTX);
HttpMgmtProxy httpMgmt = new HttpMgmtProxy(mgmtURL);
String cmd = recursive ?
"/subsystem/web?operation=resource&recursive=true" : "/subsystem/web?operation=resource";
ModelNode node = httpMgmt.sendGetCommand(cmd);
assertTrue(node.has("virtual-server"));
ModelNode vServer = node.get("virtual-server");
assertTrue(vServer.has("default-host"));