AgnosticTreeView implements TreeView { @Override public void setCanvasBackground(RGBColor color) { polygonPanel.setBackground(color); } AgnosticTreeView(PolygonPanel polygonPanel); @Override void addNodeInteractionListener(NodeInteractionListener listener); @Override void colorNode(String nodeId, RGBColor color, RGBColor border); @Override void addCascadeLoadedListener(CascadeLoadedListener listener); @Override void setCanvasBackground(RGBColor color); @Override void loadCascade(Cascade newCascade, boolean resetView); @Override void addSpecialControl(String nodeId, SpecialControl specialControl); @Override void initNodeNames(); @Override void initToolTips(ToolTipProperties properties); @Override void loadNodeNamesFrom(NodePresentationProperties nodePresentationProperties); @Override void clear(); @Override void registerSpecialType(Class contentClass, ContentFactory factory);  }
@Test public void setsBackgroundFillOnPolygonPanel() throws Exception { treeView.setCanvasBackground(RGBColor.Red); verify(panel).setBackground(RGBColor.Red); }