### Question:
SecurityTrade implements ResolvableSecurityTrade, ImmutableBean, Serializable { public static SecurityTrade of( TradeInfo tradeInfo, SecurityId securityId, double quantity, double price) { return new SecurityTrade(tradeInfo, securityId, quantity, price); } SecurityTrade(
      TradeInfo info,
      SecurityId securityId,
      double quantity,
      double price); static SecurityTrade of(
      TradeInfo tradeInfo,
      SecurityId securityId,
      double quantity,
      double price); @Override PortfolioItemSummary summarize(); @Override SecurityTrade withInfo(PortfolioItemInfo info); @Override SecurityTrade withQuantity(double quantity); @Override SecurityTrade withPrice(double price); static SecurityTrade.Meta meta(); static SecurityTrade.Builder builder(); @Override SecurityTrade.Meta metaBean(); @Override TradeInfo getInfo(); @Override SecurityId getSecurityId(); @Override double getQuantity(); @Override double getPrice(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_resolveTarget() { GenericSecurity security = GenericSecurityTest.sut(); Trade test = sut().resolveTarget(ImmutableReferenceData.of(SECURITY_ID, security)); GenericSecurityTrade expected = GenericSecurityTrade.of(TRADE_INFO, security, QUANTITY, PRICE); assertThat(test).isEqualTo(expected); }