for (Iterator iterator = gbeans.keySet().iterator(); iterator.hasNext();) {
ObjectName name = (ObjectName) iterator.next();
assertEquals("non started gbean: " + name, new Integer(State.RUNNING.toInt()), kernel.getAttribute(name, "state"));
}
} finally {
kernel.shutdown();
}
assertEquals(15, gbeans.size());
//we could check what the gbeans are...
}