### Question:
TradeInfo implements PortfolioItemInfo, ImmutableBean, Serializable { public static TradeInfoBuilder builder() { return new TradeInfoBuilder(); } TradeInfo(
      StandardId id,
      StandardId counterparty,
      LocalDate tradeDate,
      LocalTime tradeTime,
      ZoneId zone,
      LocalDate settlementDate,
      Map<AttributeType<?>, Object> attributes); static TradeInfo empty(); static TradeInfo of(LocalDate tradeDate); static TradeInfo from(PortfolioItemInfo info); static TradeInfoBuilder builder(); @Override TradeInfo withId(StandardId identifier); @Override ImmutableSet<AttributeType<?>> getAttributeTypes(); @Override @SuppressWarnings("unchecked") Optional<T> findAttribute(AttributeType<T> type); @Override @SuppressWarnings("unchecked") TradeInfo withAttribute(AttributeType<T> type, T value); @Override TradeInfo withAttributes(Attributes other); @Override TradeInfo combinedWith(PortfolioItemInfo other); @Override TradeInfo overrideWith(PortfolioItemInfo other); TradeInfoBuilder toBuilder(); static TradeInfo.Meta meta(); @Override TradeInfo.Meta metaBean(); @Override Optional<StandardId> getId(); Optional<StandardId> getCounterparty(); Optional<LocalDate> getTradeDate(); Optional<LocalTime> getTradeTime(); Optional<ZoneId> getZone(); Optional<LocalDate> getSettlementDate(); ImmutableMap<AttributeType<?>, Object> getAttributes(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_serialization() { TradeInfo test = TradeInfo.builder() .counterparty(COUNTERPARTY) .tradeDate(date(2014, 6, 20)) .tradeTime(LocalTime.MIDNIGHT) .zone(ZoneOffset.UTC) .settlementDate(date(2014, 6, 20)) .build(); assertSerialization(test); }