assertEquals("OK", ServerOperations.readResultAsString(result));
}
protected void undeploy(final String name) throws IOException, DeploymentExecutionException, DeploymentFailureException {
final StandaloneDeployment deployment = StandaloneDeployment.create(managementClient.getControllerClient(), null, name, Type.UNDEPLOY, null, null);
assertEquals(Status.SUCCESS, deployment.execute());
// Verify not deployed
assertFalse("Deployment " + DEPLOYMENT_NAME + " was not undeployed", isDeployed(DEPLOYMENT_NAME));
}