when(container1.getContainerName()).thenReturn(CONTAINER_1_NAME);
when(container2.getContainerName()).thenReturn(CONTAINER_2_NAME);
Archive<?> archive = ShrinkWrap.create(JavaArchive.class);
scenario.addDeployment(new DeploymentDescription(DEPLOYMENT_1_NAME, archive).setTarget(new TargetDescription(CONTAINER_1_NAME)));
// should use testable archive
scenario.addDeployment(
new DeploymentDescription(DEPLOYMENT_2_NAME, archive)
.setTarget(new TargetDescription(CONTAINER_2_NAME))
.setTestableArchive(archive));
// should not be deployed during Managed deployments
scenario.addDeployment(
new DeploymentDescription(DEPLOYMENT_3_NAME, archive)
.setTarget(new TargetDescription(CONTAINER_2_NAME))
.shouldBeManaged(false));
bind(SuiteScoped.class, ContainerRegistry.class, registry);
bind(ClassScoped.class, DeploymentScenario.class, scenario);