### Question:
ResolvedSwap implements ResolvedProduct, ImmutableBean, Serializable { public static ResolvedSwap.Builder builder() { return new ResolvedSwap.Builder(); } @ImmutableConstructor private  ResolvedSwap(List<ResolvedSwapLeg> legs);   ResolvedSwap(ImmutableList<ResolvedSwapLeg> legs, ImmutableSet<Currency> currencies, ImmutableSet<Index> indices); static ResolvedSwap of(ResolvedSwapLeg... legs); ImmutableList<ResolvedSwapLeg> getLegs(SwapLegType type); Optional<ResolvedSwapLeg> getLeg(PayReceive payReceive); Optional<ResolvedSwapLeg> getPayLeg(); Optional<ResolvedSwapLeg> getReceiveLeg(); @DerivedProperty LocalDate getStartDate(); @DerivedProperty LocalDate getEndDate(); boolean isCrossCurrency(); ImmutableSet<Currency> allPaymentCurrencies(); ImmutableSet<Index> allIndices(); static ResolvedSwap.Meta meta(); static ResolvedSwap.Builder builder(); @Override ResolvedSwap.Meta metaBean(); ImmutableList<ResolvedSwapLeg> getLegs(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { ResolvedSwap test = ResolvedSwap.builder() .legs(LEG1) .build(); coverImmutableBean(test); ResolvedSwap test2 = ResolvedSwap.builder() .legs(LEG2) .build(); coverBeanEquals(test, test2); }
@Test public void test_serialization() { ResolvedSwap test = ResolvedSwap.builder() .legs(LEG1) .build(); assertSerialization(test); }