final ZonedDateTime referenceDate = DateUtils.getUTCDate(2011, 6, 22);
final String creditCruveName = "Credit";
final String repoCurveName = "Repo";
final String[] curvesName = {creditCruveName, repoCurveName };
final double lastMarginPrice = 1.0234;
final BondFuturesTransaction futureConverted = FUTURE_TRANSACTION_DEFINITION.toDerivative(referenceDate, lastMarginPrice, curvesName);
final BondFuturesSecurity security = FUTURE_DEFINITION.toDerivative(referenceDate, curvesName);
final BondFuturesTransaction futureConstructed = new BondFuturesTransaction(security, QUANTITY, lastMarginPrice);
assertEquals("Bond future transaction definition: to derivative", futureConstructed, futureConverted);
}