NavigationImpl implements Navigation { @Override public void refreshNode(Node node) { refreshNode(node, Nodes.visitNone()); } NavigationImpl(SiteId siteId, NavigationService navigationService, NavigationContext navCtx, DescriptionService descriptionService,
            ResourceBundleManager bundleManager);   NavigationImpl(SiteId siteId); @Override boolean removeNode(NodePath path); @Override Node getNode(String... nodePath); @Override Node getNode(NodePath nodePath); @Override Node getNode(NodePath nodePath, NodeVisitor visitor); @Override int getPriority(); @Override SiteId getSiteId(); @Override Node getRootNode(NodeVisitor visitor); @Override void refreshNode(Node node); @Override void refreshNode(Node node, NodeVisitor visitor); @Override void saveNode(Node node); @Override void setPriority(int priority);  }
@Test public void refreshNode() { createNavigationChildren(); Node nodeA = navigation.getRootNode(Nodes.visitAll()); Node nodeB = navigation.getRootNode(Nodes.visitAll()); nodeA.addChild("childA"); navigation.saveNode(nodeA); assertNull(nodeB.getChild("childA")); navigation.refreshNode(nodeB); assertNotNull(nodeB.getChild("childA")); }
@Test(expected = IllegalArgumentException.class) public void refreshNode_NullNode() { navigation.refreshNode(null); }