UUID actionId = plan.getDeploymentActions().get(0).getId();
ServerDeploymentActionResult actionResult = result.getDeploymentActionResult(actionId);
assertThat(actionResult.getResult(), is(Result.EXECUTED));
builder = deploymentManager.newDeploymentPlan();
plan = builder.undeploy(applName).andRemoveUndeployed().build();
result = deploymentManager.execute(plan).get();
actionId = plan.getDeploymentActions().get(0).getId();
actionResult = result.getDeploymentActionResult(actionId);
assertThat(actionResult.getResult(), is(Result.EXECUTED));