public void checkMenu() throws Exception {
Assert.assertTrue(webServerExist);
UserContextProvider contextProvider = (UserContextProvider)
waitFor(UserContextProvider.class, 300000);
Assert.assertTrue(contextProvider != null);
GraphNode node = new GraphNode(new BNode(), new SimpleMGraph());
contextProvider.addUserContext(node);
Iterator<Resource> iter = node.getObjects(GLOBALMENU.globalMenu);
Assert.assertTrue(iter.hasNext());
TripleCollection graph = node.getGraph();
RdfList list = new RdfList((NonLiteral)iter.next(), graph);
Assert.assertEquals(3, list.size());
Assert.assertEquals(GlobalMenuItemsProviderA.groupALabel,
getLabel(graph, list.get(0)));
Assert.assertEquals(GlobalMenuItemsProviderA.groupCLabel,