### Question:
ResolvedCds implements ResolvedProduct, ImmutableBean, Serializable { public static ResolvedCds.Builder builder() { return new ResolvedCds.Builder(); } private  ResolvedCds(
      BuySell buySell,
      StandardId legalEntityId,
      List<CreditCouponPaymentPeriod> paymentPeriods,
      LocalDate protectionEndDate,
      DayCount dayCount,
      PaymentOnDefault paymentOnDefault,
      ProtectionStartOfDay protectionStart,
      DaysAdjustment stepinDateOffset,
      DaysAdjustment settlementDateOffset); LocalDate getAccrualStartDate(); LocalDate getAccrualEndDate(); double getNotional(); Currency getCurrency(); double getFixedRate(); LocalDate calculateEffectiveStartDate(LocalDate stepinDate); LocalDate calculateSettlementDateFromValuation(LocalDate valuationDate, ReferenceData refData); Optional<CreditCouponPaymentPeriod> findPeriod(LocalDate date); double accruedYearFraction(LocalDate stepinDate); static ResolvedCds.Meta meta(); static ResolvedCds.Builder builder(); @Override ResolvedCds.Meta metaBean(); BuySell getBuySell(); StandardId getLegalEntityId(); ImmutableList<CreditCouponPaymentPeriod> getPaymentPeriods(); LocalDate getProtectionEndDate(); DayCount getDayCount(); PaymentOnDefault getPaymentOnDefault(); ProtectionStartOfDay getProtectionStart(); DaysAdjustment getStepinDateOffset(); DaysAdjustment getSettlementDateOffset(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { ResolvedCds test1 = ResolvedCds.builder() .buySell(BUY) .dayCount(ACT_360) .legalEntityId(LEGAL_ENTITY) .paymentOnDefault(ACCRUED_PREMIUM) .protectionStart(BEGINNING) .paymentPeriods(PAYMENTS) .protectionEndDate(PAYMENTS.get(PAYMENTS.size() - 1).getEffectiveEndDate()) .settlementDateOffset(SETTLE_DAY_ADJ) .stepinDateOffset(STEPIN_DAY_ADJ) .build(); coverImmutableBean(test1); ResolvedCds test2 = ResolvedCds.builder() .buySell(BuySell.SELL) .dayCount(DayCounts.ACT_365F) .legalEntityId(StandardId.of("OG", "EFG")) .paymentOnDefault(PaymentOnDefault.NONE) .protectionStart(ProtectionStartOfDay.NONE) .paymentPeriods(PAYMENTS.get(0)) .protectionEndDate(PAYMENTS.get(0).getEffectiveEndDate()) .settlementDateOffset(DaysAdjustment.NONE) .stepinDateOffset(DaysAdjustment.NONE) .build(); coverBeanEquals(test1, test2); }
@Test public void test_serialization() { ResolvedCds test = ResolvedCds.builder() .buySell(BUY) .dayCount(ACT_360) .legalEntityId(LEGAL_ENTITY) .paymentOnDefault(ACCRUED_PREMIUM) .protectionStart(BEGINNING) .paymentPeriods(PAYMENTS) .protectionEndDate(PAYMENTS.get(PAYMENTS.size() - 1).getEffectiveEndDate()) .settlementDateOffset(SETTLE_DAY_ADJ) .stepinDateOffset(STEPIN_DAY_ADJ) .build(); assertSerialization(test); }