YieldCurveManipulatorBuilder { public final YieldCurveManipulatorBuilder pointShifts(ScenarioShiftType shiftType, YieldCurvePointShift... shifts) { ArgumentChecker.notNull(shiftType, "shiftType"); ArgumentChecker.notEmpty(shifts, "shifts"); YieldCurvePointShiftManipulator manipulator = new YieldCurvePointShiftManipulator(shiftType, Arrays.asList(shifts)); _scenario.add(_selector, manipulator); return this; } YieldCurveManipulatorBuilder(YieldCurveSelector selector, Scenario scenario); YieldCurveSelector getSelector(); Scenario getScenario(); YieldCurveManipulatorBuilder parallelShift(ScenarioShiftType shiftType, Number shift); @Deprecated YieldCurveManipulatorBuilder parallelShift(Number shift); YieldCurveManipulatorBuilder singleShift(Number t, Number shift); final YieldCurveManipulatorBuilder bucketedShifts(ScenarioShiftType shiftType, YieldCurveBucketedShift... shifts); final YieldCurveManipulatorBuilder pointShifts(ScenarioShiftType shiftType, YieldCurvePointShift... shifts);  }
@Test public void pointShifts() { _builder.pointShifts(ScenarioShiftType.ABSOLUTE, pointShift(1, 2)); YieldCurvePointShiftManipulator result = (YieldCurvePointShiftManipulator)_manipulatorResult; assertTrue("One shift expected", 1 == result.getPointShifts().size()); YieldCurvePointShift shift = result.getPointShifts().get(0); assertEquals(1, shift.getPointIndex()); assertEquals(2d, shift.getShift()); }