ConstantElasticityOfVarianceModelDataBundle extends StandardOptionDataBundle { public double getElasticity() { return _elasticity; } ConstantElasticityOfVarianceModelDataBundle(final YieldAndDiscountCurve discountCurve, final double b, final VolatilitySurface volatilitySurface, final double spot, final ZonedDateTime date,
      final double elasticity);  ConstantElasticityOfVarianceModelDataBundle(final StandardOptionDataBundle data, final double elasticity); double getElasticity(); @Override ConstantElasticityOfVarianceModelDataBundle withInterestRateCurve(final YieldAndDiscountCurve curve); @Override ConstantElasticityOfVarianceModelDataBundle withCostOfCarry(final double costOfCarry); @Override ConstantElasticityOfVarianceModelDataBundle withVolatilitySurface(final VolatilitySurface surface); @Override ConstantElasticityOfVarianceModelDataBundle withDate(final ZonedDateTime date); @Override ConstantElasticityOfVarianceModelDataBundle withSpot(final double spot); ConstantElasticityOfVarianceModelDataBundle withElasticity(final double elasticity); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void testGetters() { assertEquals(DATA.getCostOfCarry(), B, 0); assertEquals(DATA.getDate(), DATE); assertEquals(DATA.getInterestRateCurve(), CURVE); assertEquals(DATA.getElasticity(), ELASTICITY, 0); assertEquals(DATA.getSpot(), SPOT, 0); assertEquals(DATA.getVolatilitySurface(), SURFACE); }