### Question:
OvernightFuturePosition implements SecuritizedProductPosition<OvernightFuture>, Resolvable<ResolvedOvernightFutureTrade>,
    ImmutableBean, Serializable { public static OvernightFuturePosition.Builder builder() { return new OvernightFuturePosition.Builder(); } OvernightFuturePosition(
      PositionInfo info,
      OvernightFuture product,
      double longQuantity,
      double shortQuantity); static OvernightFuturePosition ofNet(PositionInfo positionInfo, OvernightFuture product, double netQuantity); static OvernightFuturePosition ofLongShort(
      PositionInfo positionInfo,
      OvernightFuture product,
      double longQuantity,
      double shortQuantity); @Override SecurityId getSecurityId(); @Override Currency getCurrency(); @Override @DerivedProperty double getQuantity(); @Override OvernightFuturePosition withInfo(PortfolioItemInfo info); @Override OvernightFuturePosition withQuantity(double quantity); @Override PortfolioItemSummary summarize(); @Override ResolvedOvernightFutureTrade resolve(ReferenceData refData); static OvernightFuturePosition.Meta meta(); static OvernightFuturePosition.Builder builder(); @Override OvernightFuturePosition.Meta metaBean(); @Override PositionInfo getInfo(); @Override OvernightFuture getProduct(); double getLongQuantity(); double getShortQuantity(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { OvernightFuturePosition test1 = OvernightFuturePosition.builder() .info(POSITION_INFO) .product(PRODUCT) .longQuantity(QUANTITY) .build(); coverImmutableBean(test1); OvernightFuturePosition test2 = OvernightFuturePosition.builder() .info(POSITION_INFO2) .product(PRODUCT2) .longQuantity(100) .shortQuantity(50) .build(); coverBeanEquals(test1, test2); }
@Test public void test_serialization() { OvernightFuturePosition test = OvernightFuturePosition.builder() .info(POSITION_INFO) .product(PRODUCT) .longQuantity(QUANTITY) .build(); assertSerialization(test); }