### Question:
SmileDeltaParameters implements ParameterizedData, ImmutableBean, Serializable { public DoubleArray getVolatility() { return volatility; } private  SmileDeltaParameters(
      double expiry,
      DoubleArray delta,
      DoubleArray volatility,
      List<ParameterMetadata> parameterMetadata); static SmileDeltaParameters of(double expiry, DoubleArray delta, DoubleArray volatility); static SmileDeltaParameters of(double expiry, Tenor expiryTenor, DoubleArray delta, DoubleArray volatility); static SmileDeltaParameters of(
      double expiry,
      DoubleArray delta,
      DoubleArray volatility,
      List<ParameterMetadata> parameterMetadata); static SmileDeltaParameters of(
      double expiry,
      double atmVolatility,
      DoubleArray delta,
      DoubleArray riskReversal,
      DoubleArray strangle); static SmileDeltaParameters of(
      double expiry,
      Tenor expiryTenor,
      double atmVolatility,
      DoubleArray delta,
      DoubleArray riskReversal,
      DoubleArray strangle); static SmileDeltaParameters of(
      double expiry,
      double atmVolatility,
      DoubleArray delta,
      DoubleArray riskReversal,
      DoubleArray strangle,
      List<ParameterMetadata> parameterMetadata); @Override int getParameterCount(); @Override double getParameter(int parameterIndex); @Override ParameterMetadata getParameterMetadata(int parameterIndex); @Override SmileDeltaParameters withParameter(int parameterIndex, double newValue); @Override SmileDeltaParameters withPerturbation(ParameterPerturbation perturbation); DoubleArray strike(double forward); Optional<Tenor> getExpiryTenor(); static SmileDeltaParameters.Meta meta(); @Override SmileDeltaParameters.Meta metaBean(); double getExpiry(); DoubleArray getDelta(); DoubleArray getVolatility(); ImmutableList<ParameterMetadata> getParameterMetadata(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void volatility() { DoubleArray volatility = SMILE.getVolatility(); int nbDelta = DELTA.size(); assertThat(volatility.get(nbDelta)).as("Volatility: ATM").isEqualTo(ATM); for (int loopdelta = 0; loopdelta < nbDelta; loopdelta++) { assertThat(volatility.get(2 * nbDelta - loopdelta) - volatility.get(loopdelta)) .as("Volatility: Risk Reversal " + loopdelta) .isCloseTo(RISK_REVERSAL.get(loopdelta), offset(1e-8)); assertThat((volatility.get(2 * nbDelta - loopdelta) + volatility.get(loopdelta)) / 2 - volatility.get(nbDelta)) .as("Volatility: Strangle " + loopdelta) .isCloseTo(STRANGLE.get(loopdelta), offset(1e-8)); } }