### Question:
VolatilityAndBucketedSensitivities implements ImmutableBean, Serializable { public static VolatilityAndBucketedSensitivities of(double volatility, DoubleMatrix sensitivities) { return new VolatilityAndBucketedSensitivities(volatility, sensitivities); } private  VolatilityAndBucketedSensitivities(
      double volatility,
      DoubleMatrix sensitivities); static VolatilityAndBucketedSensitivities of(double volatility, DoubleMatrix sensitivities); static VolatilityAndBucketedSensitivities.Meta meta(); @Override VolatilityAndBucketedSensitivities.Meta metaBean(); double getVolatility(); DoubleMatrix getSensitivities(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testNullSensitivities() { assertThatIllegalArgumentException() .isThrownBy(() -> VolatilityAndBucketedSensitivities.of(VOL, null)); }