for(DeploymentDescription deploymentDesc : scenario) {
if(deploymentDesc.getOrder() == 1) {
Assert.assertEquals(
"Verify deployment has specified target",
new TargetDescription("target-first"),
deploymentDesc.getTarget());
Assert.assertEquals(
"Verify deployment has specified protocol",
new ProtocolDescription("protocol-first"),
deploymentDesc.getProtocol());
Assert.assertEquals(1, deploymentDesc.getOrder());
Assert.assertEquals(false, deploymentDesc.managed());
Assert.assertEquals(false, deploymentDesc.testable());
Assert.assertTrue(Validate.isArchiveOfType(JavaArchive.class, deploymentDesc.getArchive()));
Assert.assertNull(deploymentDesc.getExpectedException());
} else {
Assert.assertEquals(
"Verify deployment has specified target",
new TargetDescription("target-second"),
deploymentDesc.getTarget());
Assert.assertEquals(
"Verify deployment has specified protocol",
new ProtocolDescription("protocol-second"),
deploymentDesc.getProtocol());