### Question:
CreditCurveZeroRateSensitivity implements PointSensitivity, PointSensitivityBuilder, ImmutableBean, Serializable { public static CreditCurveZeroRateSensitivity of( StandardId legalEntityId, Currency currency, double yearFraction, double sensitivity) { ZeroRateSensitivity zeroRateSensitivity = ZeroRateSensitivity.of(currency, yearFraction, sensitivity); return new CreditCurveZeroRateSensitivity(legalEntityId, zeroRateSensitivity); } private  CreditCurveZeroRateSensitivity(
      StandardId legalEntityId,
      ZeroRateSensitivity zeroRateSensitivity); static CreditCurveZeroRateSensitivity of(
      StandardId legalEntityId,
      Currency currency,
      double yearFraction,
      double sensitivity); static CreditCurveZeroRateSensitivity of(
      StandardId legalEntityId,
      Currency curveCurrency,
      double yearFraction,
      Currency sensitivityCurrency,
      double sensitivity); static CreditCurveZeroRateSensitivity of(
      StandardId legalEntityId,
      ZeroRateSensitivity zeroRateSensitivity); @Override Currency getCurrency(); @Override double getSensitivity(); Currency getCurveCurrency(); double getYearFraction(); @Override CreditCurveZeroRateSensitivity withCurrency(Currency currency); @Override CreditCurveZeroRateSensitivity withSensitivity(double sensitivity); @Override int compareKey(PointSensitivity other); @Override CreditCurveZeroRateSensitivity convertedTo(Currency resultCurrency, FxRateProvider rateProvider); @Override CreditCurveZeroRateSensitivity multipliedBy(double factor); @Override CreditCurveZeroRateSensitivity mapSensitivity(DoubleUnaryOperator operator); @Override CreditCurveZeroRateSensitivity normalize(); @Override MutablePointSensitivities buildInto(MutablePointSensitivities combination); @Override CreditCurveZeroRateSensitivity cloned(); ZeroRateSensitivity toZeroRateSensitivity(); static CreditCurveZeroRateSensitivity.Meta meta(); @Override CreditCurveZeroRateSensitivity.Meta metaBean(); StandardId getLegalEntityId(); ZeroRateSensitivity getZeroRateSensitivity(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_combinedWith() { CreditCurveZeroRateSensitivity base1 = CreditCurveZeroRateSensitivity.of(LEGAL_ENTITY, GBP, YEAR_FRACTION, 32d); CreditCurveZeroRateSensitivity base2 = CreditCurveZeroRateSensitivity.of(LEGAL_ENTITY, GBP, YEAR_FRACTION, 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() { CreditCurveZeroRateSensitivity base = CreditCurveZeroRateSensitivity.of(LEGAL_ENTITY, GBP, YEAR_FRACTION, 32d); MutablePointSensitivities expected = new MutablePointSensitivities(); expected.add(base); PointSensitivityBuilder test = base.combinedWith(new MutablePointSensitivities()); assertThat(test).isEqualTo(expected); }
@Test public void test_build() { CreditCurveZeroRateSensitivity base = CreditCurveZeroRateSensitivity.of(LEGAL_ENTITY, GBP, YEAR_FRACTION, 32d); PointSensitivities test = base.build(); assertThat(test.getSensitivities()).containsExactly(base); }
@Test public void coverage() { CreditCurveZeroRateSensitivity test = CreditCurveZeroRateSensitivity.of(LEGAL_ENTITY, GBP, YEAR_FRACTION, 32d); coverImmutableBean(test); CreditCurveZeroRateSensitivity test2 = CreditCurveZeroRateSensitivity.of(StandardId.of("OG", "AAA"), USD, YEAR_FRACTION, 16d); coverBeanEquals(test, test2); }
@Test public void test_serialization() { CreditCurveZeroRateSensitivity test = CreditCurveZeroRateSensitivity.of(LEGAL_ENTITY, GBP, YEAR_FRACTION, 32d); assertSerialization(test); }