32333435363738
* {@code managed} will be stopped. * * @param managed a managed object */ public void manage(Managed managed) { managedObjects.add(new JettyManaged(checkNotNull(managed))); }
40414243444546474849
final Object bean = ImmutableList.copyOf(container.getBeans()).get(0); assertThat(bean) .isInstanceOf(JettyManaged.class); final JettyManaged jettyManaged = (JettyManaged) bean; assertThat(jettyManaged.getManaged()) .isEqualTo(managed); }