private Instance<DeploymentScenario> scenario;
@Before
public void createSetup()
{
ContainerRegistry reg = Mockito.mock(ContainerRegistry.class);
Container container = Mockito.mock(Container.class);
Mockito.when(container.getState()).thenReturn(State.STARTED);
Mockito.when(container.getName()).thenReturn("_DEFAULT_");
Container containerStopped = Mockito.mock(Container.class);
Mockito.when(containerStopped.getState()).thenReturn(State.STOPPED);
Mockito.when(containerStopped.getName()).thenReturn("_CONTAINER_STOPPED_");
Mockito.when(reg.getContainer("_DEFAULT_")).thenReturn(container);
Mockito.when(reg.getContainer("_CONTAINER_STOPPED_")).thenReturn(containerStopped);
Mockito.when(reg.getContainer(new TargetDescription("_DEFAULT_"))).thenReturn(container);
Mockito.when(reg.getContainer(new TargetDescription("_CONTAINER_STOPPED_"))).thenReturn(containerStopped);
bind(ApplicationScoped.class, DeploymentScenario.class, new DeploymentScenario());
bind(ApplicationScoped.class, ContainerRegistry.class, reg);
fire(new SetupContainers()); // binds the Deployer