### Question:
OvernightRateSwapLegConvention implements SwapLegConvention, ImmutableBean, Serializable { public static OvernightRateSwapLegConvention of( OvernightIndex index, Frequency frequency, int paymentOffsetDays) { return of(index, frequency, paymentOffsetDays, OvernightAccrualMethod.COMPOUNDED); } private  OvernightRateSwapLegConvention(
      OvernightIndex index,
      OvernightAccrualMethod accrualMethod,
      Integer rateCutOffDays,
      Currency currency,
      DayCount dayCount,
      Frequency accrualFrequency,
      BusinessDayAdjustment accrualBusinessDayAdjustment,
      BusinessDayAdjustment startDateBusinessDayAdjustment,
      BusinessDayAdjustment endDateBusinessDayAdjustment,
      StubConvention stubConvention,
      RollConvention rollConvention,
      Frequency paymentFrequency,
      DaysAdjustment paymentDateOffset,
      CompoundingMethod compoundingMethod); static OvernightRateSwapLegConvention of(
      OvernightIndex index,
      Frequency frequency,
      int paymentOffsetDays); static OvernightRateSwapLegConvention of(
      OvernightIndex index,
      Frequency frequency,
      int paymentOffsetDays,
      OvernightAccrualMethod accrualMethod); int getRateCutOffDays(); Currency getCurrency(); DayCount getDayCount(); Frequency getAccrualFrequency(); BusinessDayAdjustment getAccrualBusinessDayAdjustment(); BusinessDayAdjustment getStartDateBusinessDayAdjustment(); BusinessDayAdjustment getEndDateBusinessDayAdjustment(); StubConvention getStubConvention(); RollConvention getRollConvention(); Frequency getPaymentFrequency(); DaysAdjustment getPaymentDateOffset(); CompoundingMethod getCompoundingMethod(); RateCalculationSwapLeg toLeg(
      LocalDate startDate,
      LocalDate endDate,
      PayReceive payReceive,
      double notional); RateCalculationSwapLeg toLeg(
      LocalDate startDate,
      LocalDate endDate,
      PayReceive payReceive,
      double notional,
      double spread); static OvernightRateSwapLegConvention.Meta meta(); static OvernightRateSwapLegConvention.Builder builder(); @Override OvernightRateSwapLegConvention.Meta metaBean(); OvernightIndex getIndex(); OvernightAccrualMethod getAccrualMethod(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_serialization() { OvernightRateSwapLegConvention test = OvernightRateSwapLegConvention.of(GBP_SONIA, P12M, 2); assertSerialization(test); }