Assert.assertNotNull(
"Verify instance was bound to context",
context.getObjectStore().get(Object.class));
ContainerContext containerContext = manager.getContext(ContainerContext.class);
Assert.assertFalse(containerContext.isActive());
containerContext.activate("");
try
{
Assert.assertNotNull(
"Should have set a Double in container scope",
containerContext.getObjectStore().get(Double.class));
}
finally
{
containerContext.deactivate();
containerContext.destroy("");
}
}
finally
{
context.deactivate();