VirtualBandMultiLevelImage extends DefaultMultiLevelImage implements ProductNodeListener { Map<Product, Set<ProductNode>> getNodeMap() { return nodeMap; } VirtualBandMultiLevelImage(MultiLevelSource multiLevelSource, String expression, Product product); @Override void dispose(); @Override void nodeChanged(ProductNodeEvent event); @Override void nodeDataChanged(ProductNodeEvent event); @Override void nodeAdded(ProductNodeEvent event); @Override void nodeRemoved(ProductNodeEvent event);  }
@Test public void nodesAreAdded() { assertTrue(image.getNodeMap().containsKey(p)); assertTrue(image.getNodeMap().containsKey(q)); assertTrue(image.getNodeMap().get(p).contains(v)); assertTrue(image.getNodeMap().get(q).contains(w)); }