### Question:
XYErrorRenderer extends XYLineAndShapeRenderer { @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, true); } XYErrorRenderer(); boolean getDrawXError(); void setDrawXError(boolean draw); boolean getDrawYError(); void setDrawYError(boolean draw); double getCapLength(); void setCapLength(double length); Paint getErrorPaint(); void setErrorPaint(Paint paint); Stroke getErrorStroke(); void setErrorStroke(Stroke stroke); @Override Range findDomainBounds(XYDataset dataset); @Override Range findRangeBounds(XYDataset dataset); @Override void drawItem(Graphics2D g2, XYItemRendererState state,
            Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot,
            ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset,
            int series, int item, CrosshairState crosshairState, int pass); @Override boolean equals(Object obj);  }### Answer:
@Test public void testFindDomainBounds() { XYErrorRenderer r = new XYErrorRenderer(); assertNull(r.findDomainBounds(null)); }