Assert.assertEquals("Deep nested id", deepId, monitor.getDeepNestedId());
// Remove the nested bean
removeBean(nested);
Assert.assertEquals("Remote counter (via monitor): ", -1, monitor.incrementNested());
Assert.assertFalse("nested.remove() fails", monitor.removeNested());
// Confirm other beans still work
Assert.assertEquals("Local counter (monitor):", 3 , monitor.incrementLocalNested());
Assert.assertEquals("Deep nested id", deepId, monitor.getDeepNestedId());