DeploymentDescription deploymentOne = scenario.get(0);
Assert.assertEquals(
"Verify deployment has specified target",
new TargetDescription("target-first"),
deploymentOne.getTarget());
Assert.assertEquals(
"Verify deployment has specified protocol",
new ProtocolDescription("protocol-first"),
deploymentOne.getProtocol());
Assert.assertEquals(1, deploymentOne.getOrder());
Assert.assertEquals(false, deploymentOne.managed());
Assert.assertEquals(false, deploymentOne.testable());
Assert.assertTrue(Validate.isArchiveOfType(JavaArchive.class, deploymentOne.getArchive()));
Assert.assertNull(deploymentOne.getExpectedException());
DeploymentDescription deploymentTwo = scenario.get(1);
Assert.assertEquals(
"Verify deployment has specified target",
new TargetDescription("target-second"),
deploymentTwo.getTarget());
Assert.assertEquals(
"Verify deployment has specified protocol",
new ProtocolDescription("protocol-second"),
deploymentTwo.getProtocol());