/** Tests the clean real price from the dirty real price. */
 public void cleanNominalPriceFromDirtyNominalPriceTips1() {
   final double dirtyNominal = 1.01;
   final double cleanReal =
       METHOD_BOND_INFLATION.cleanNominalPriceFromDirtyNominalPrice(
           BOND_SECURITY_TIPS_1, dirtyNominal);
   final double indexRatio = BOND_SECURITY_TIPS_1.getIndexRatio();
   final double cleanRealExpected =
       dirtyNominal - BOND_SECURITY_TIPS_1.getAccruedInterest() / NOTIONAL_TIPS_1 * indexRatio;
   assertEquals(
       "Inflation Capital Indexed bond: clean from dirty", cleanRealExpected, cleanReal, 1.0E-8);
 }