@Test
public void testCommandContext() {
Object obj = ctx.getBean("lifecycleAdvisor");
assertNotNull(obj);
LifecycleAdvisor advisor = (LifecycleAdvisor)obj;
advisor.setOpeningWindow(new DefaultApplicationWindow());
advisor.createWindowCommandManager();
assertTrue(advisor.getMenuBarCommandGroup().getMemberCount() > 3);
}