PresentValueBlackBondFuturesCubeSensitivity { public PresentValueBlackBondFuturesCubeSensitivity multipliedBy(final double factor) { return new PresentValueBlackBondFuturesCubeSensitivity(CubeValue.multiplyBy(_sensitivity, factor), _currency, _legalEntity); } PresentValueBlackBondFuturesCubeSensitivity(final Currency currency, final LegalEntity legalEntity);  PresentValueBlackBondFuturesCubeSensitivity(final Map<Triple<Double, Double, Double>, Double> sensitivity,
      final Currency currency, final LegalEntity legalEntity);  PresentValueBlackBondFuturesCubeSensitivity(final CubeValue sensitivity,
      final Currency currency, final LegalEntity legalEntity); void addSensitivity(final Triple<Double, Double, Double> expiryDelayStrike, final double sensitivity); PresentValueBlackBondFuturesCubeSensitivity multipliedBy(final double factor); PresentValueBlackBondFuturesCubeSensitivity plus(final PresentValueBlackBondFuturesCubeSensitivity sensi); CubeValue getSensitivity(); Currency getCurrency(); LegalEntity getLegalEntiry(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void multipliedBy() { final double factor = 2.0; final CubeValue cube = new CubeValue(); cube.getMap().putAll(CUBE_VAL.getMap()); PresentValueBlackBondFuturesCubeSensitivity sensi1 = new PresentValueBlackBondFuturesCubeSensitivity(cube.getMap(), CCY, LEGAL_ENTITY_GERMANY); final PresentValueBlackBondFuturesCubeSensitivity sensi2 = sensi1.multipliedBy(factor); assertEquals("PresentValueBlackBondFuturesCubeSensitivity: add", CubeValue.multiplyBy(sensi1.getSensitivity(), factor), sensi2.getSensitivity()); assertEquals("PresentValueBlackBondFuturesCubeSensitivity: add", sensi1.getSensitivity(), cube); }