Map<String, String> deploymentProperties = new HashMap<>();
List<String> cmdLineArgs = Arrays.asList("--commandLineArgValueThatMayNeedEscaping=" + DeployerIntegrationTestProperties.FUNNY_CHARACTERS);
AppDeploymentRequest request =
new AppDeploymentRequest(definition, testApplication(), deploymentProperties, cmdLineArgs);
log.info("Deploying {}...", request.getDefinition().getName());
<BUG>String deploymentId = appDeployer().deploy(request);
</BUG>
Timeout timeout = deploymentTimeout();
assertThat(deploymentId, eventually(hasStatusThat(
Matchers.<AppStatus>hasProperty("state", is(deployed))), timeout.maxAttempts, timeout.pause));

Map<String, String> deploymentProperties = new HashMap<>();
deploymentProperties.put("killDelay", "0");
AppDeploymentRequest request = new AppDeploymentRequest(definition, testApplication(), deploymentProperties);
log.info("Deploying {}...", request.getDefinition().getName());
String deploymentId = record(appDeployer().deploy(request));
Timeout timeout = deploymentTimeout();
assertThat(deploymentId, eventually(hasStatusThat(
Matchers.<AppStatus>hasProperty("state", is(deployed))), timeout.maxAttempts, timeout.pause));
