### Question:
OvernightRateSensitivity implements PointSensitivity, PointSensitivityBuilder, ImmutableBean, Serializable { public static OvernightRateSensitivity of(OvernightIndexObservation observation, double sensitivity) { return of(observation, 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_combinedWith() { OvernightRateSensitivity base1 = OvernightRateSensitivity.of(GBP_SONIA_OBSERVATION, 32d); OvernightRateSensitivity base2 = OvernightRateSensitivity.of( OvernightIndexObservation.of(GBP_SONIA, date(2015, 10, 27), REF_DATA), 22d); MutablePointSensitivities expected = new MutablePointSensitivities(); expected.add(base1).add(base2); PointSensitivityBuilder test = base1.combinedWith(base2); assertThat(test).isEqualTo(expected); }
@Test public void test_combinedWith_mutable() { OvernightRateSensitivity base = OvernightRateSensitivity.of(GBP_SONIA_OBSERVATION, 32d); MutablePointSensitivities expected = new MutablePointSensitivities(); expected.add(base); PointSensitivityBuilder test = base.combinedWith(new MutablePointSensitivities()); assertThat(test).isEqualTo(expected); }
@Test public void test_build() { OvernightRateSensitivity base = OvernightRateSensitivity.of(GBP_SONIA_OBSERVATION, 32d); PointSensitivities test = base.build(); assertThat(test.getSensitivities()).containsExactly(base); }
@Test public void coverage() { OvernightRateSensitivity test = OvernightRateSensitivity.of(GBP_SONIA_OBSERVATION, 32d); coverImmutableBean(test); OvernightRateSensitivity test2 = OvernightRateSensitivity.of(USD_FED_FUND_OBSERVATION2, 16d); coverBeanEquals(test, test2); }
@Test public void test_serialization() { OvernightRateSensitivity test = OvernightRateSensitivity.of(GBP_SONIA_OBSERVATION, 32d); assertSerialization(test); }