### Question:
SeriesYRateRecalculator implements SeriesYRecalculator { @Override public boolean handles(YValueType yValueType) { Preconditions.checkNotNull(yValueType); return yValueType.getClass().equals(RateYValue.class); }  @Override Series<Object, ? extends Number> recalculateSeries(Series<Object, Integer> series, JudgmentSeriesCriteria criteria, XSettings xsettings, YSettings ysettings); @Override boolean handles(YValueType yValueType); @Autowired void setRateBaseSeriesGenerator(RateBaseSeriesGenerator rateBaseSeriesGenerator);  }### Answer:
@Test public void handles_RateYValue() { assertTrue(recalculator.handles(new RateYValue(2))); }
@Test public void handles_OtherValueType() { assertFalse(recalculator.handles(new NumberYValue())); }