public class LifecycleEnvironmentTest {
private final LifecycleEnvironment environment = new LifecycleEnvironment();
@Test
public void managesLifeCycleObjects() throws Exception {
final LifeCycle lifeCycle = mock(LifeCycle.class);
environment.manage(lifeCycle);
final ContainerLifeCycle container = new ContainerLifeCycle();
environment.attach(container);