### Question:
InflationRateSwapLegConvention implements SwapLegConvention, ImmutableBean, Serializable { public static InflationRateSwapLegConvention of( PriceIndex index, Period lag, PriceIndexCalculationMethod priceIndexCalculationMethod, BusinessDayAdjustment businessDayAdjustment) { return new InflationRateSwapLegConvention( index, lag, priceIndexCalculationMethod, false, DaysAdjustment.NONE, businessDayAdjustment); } private  InflationRateSwapLegConvention(
      PriceIndex index,
      Period lag,
      PriceIndexCalculationMethod indexCalculationMethod,
      boolean notionalExchange,
      DaysAdjustment paymentDateOffset,
      BusinessDayAdjustment accrualBusinessDayAdjustment); static InflationRateSwapLegConvention of(
      PriceIndex index,
      Period lag,
      PriceIndexCalculationMethod priceIndexCalculationMethod,
      BusinessDayAdjustment businessDayAdjustment); Currency getCurrency(); RateCalculationSwapLeg toLeg(
      LocalDate startDate,
      LocalDate endDate,
      PayReceive payReceive,
      double notional); static InflationRateSwapLegConvention.Meta meta(); static InflationRateSwapLegConvention.Builder builder(); @Override InflationRateSwapLegConvention.Meta metaBean(); PriceIndex getIndex(); Period getLag(); PriceIndexCalculationMethod getIndexCalculationMethod(); boolean isNotionalExchange(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_serialization() { InflationRateSwapLegConvention test = InflationRateSwapLegConvention.of(GB_HICP, LAG_3M, MONTHLY, BDA_MOD_FOLLOW); assertSerialization(test); }