### Question:
OvernightRateSensitivity implements PointSensitivity, PointSensitivityBuilder, ImmutableBean, Serializable { public static OvernightRateSensitivity ofPeriod( OvernightIndexObservation observation, LocalDate endDate, double sensitivity) { return ofPeriod(observation, endDate, observation.getCurrency(), sensitivity); } private  OvernightRateSensitivity(
      OvernightIndexObservation observation,
      LocalDate endDate,
      Currency currency,
      double sensitivity); static OvernightRateSensitivity of(OvernightIndexObservation observation, double sensitivity); static OvernightRateSensitivity of(
      OvernightIndexObservation observation,
      Currency sensitivityCurrency,
      double sensitivity); static OvernightRateSensitivity ofPeriod(
      OvernightIndexObservation observation,
      LocalDate endDate,
      double sensitivity); static OvernightRateSensitivity ofPeriod(
      OvernightIndexObservation observation,
      LocalDate endDate,
      Currency sensitivityCurrency,
      double sensitivity); OvernightIndex getIndex(); @Override OvernightRateSensitivity withCurrency(Currency currency); @Override OvernightRateSensitivity withSensitivity(double sensitivity); @Override int compareKey(PointSensitivity other); @Override OvernightRateSensitivity convertedTo(Currency resultCurrency, FxRateProvider rateProvider); @Override OvernightRateSensitivity multipliedBy(double factor); @Override OvernightRateSensitivity mapSensitivity(DoubleUnaryOperator operator); @Override OvernightRateSensitivity normalize(); @Override MutablePointSensitivities buildInto(MutablePointSensitivities combination); @Override OvernightRateSensitivity cloned(); static OvernightRateSensitivity.Meta meta(); @Override OvernightRateSensitivity.Meta metaBean(); OvernightIndexObservation getObservation(); LocalDate getEndDate(); @Override Currency getCurrency(); @Override double getSensitivity(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_badDateOrder() { assertThatIllegalArgumentException() .isThrownBy(() -> OvernightRateSensitivity.ofPeriod(GBP_SONIA_OBSERVATION, DATE, GBP, 32d)); }