CurveDataParallelShift extends CurveDataShift { protected double shift(double normalizedValue) { return normalizedValue + getShiftAmount(); } CurveDataParallelShift(double shiftAmount, CurveSpecificationMatcher matcher);   }
@Test public void shift() { CurveDataParallelShift shift = new CurveDataParallelShift(0.1, CurveSpecificationMatcher.named(CurveTestUtils.CURVE_NAME)); Map<ExternalIdBundle, Double> shiftedValues = shift.apply(CurveTestUtils.CURVE_SPEC, CurveTestUtils.VALUE_MAP); CurveTestUtils.checkValues(shiftedValues, 0.2, 0.3, 0.6, 0.5); }