CurveDataRelativeShift extends CurveDataShift { @Override protected double shift(double normalizedValue) { return normalizedValue * getShiftAmount(); } CurveDataRelativeShift(double shiftAmount, CurveSpecificationMatcher matcher);   }
@Test public void shift() { CurveDataRelativeShift shift = new CurveDataRelativeShift(0.1, CurveSpecificationMatcher.named(CurveTestUtils.CURVE_NAME)); Map<ExternalIdBundle, Double> shiftedValues = shift.apply(CurveTestUtils.CURVE_SPEC, CurveTestUtils.VALUE_MAP); CurveTestUtils.checkValues(shiftedValues, 0.11, 0.22, 0.67, 0.44); }