DefaultContainerCascade implements ContainerCascade { @Override public void initNodeNames(NodePresentationProperties properties) { for (IdentifiedPolygon node : nodes) { String nodeName = properties.getNodeText(node.id); node.element.setText(nodeName); } }  void add(final IdentifiedPolygon node); void add(FlexibleArrow element); @Override void colorNode(String nodeId, RGBColor fillColor, RGBColor borderColor); @Override void addTo(PolygonPanel panel); @Override void addToggleListener(NodeToggleListener listener); @Override void removeToggleListener(NodeToggleListener listener); @Override void initNodeNames(NodePresentationProperties properties); @Override void determinePositionFor(String nodeId, ShapeWithPosition control); @Override boolean hasNode(String nodeId); void moveBy(double x, double y);  }
@Test public void setsInternationalizedNamesOnElements() throws Exception { NodePresentationProperties properties = mock(NodePresentationProperties.class); when(properties.getNodeText("X")).thenReturn("XNAME"); container.initNodeNames(properties); verify(polygon1).setText("XNAME"); }