@Test
public void managesManagedObjects() throws Exception {
final Managed managed = mock(Managed.class);
environment.manage(managed);
final ContainerLifeCycle container = new ContainerLifeCycle();
environment.attach(container);
final Object bean = ImmutableList.copyOf(container.getBeans()).get(0);
assertThat(bean)
.isInstanceOf(JettyManaged.class);
final JettyManaged jettyManaged = (JettyManaged) bean;