final ZonedDateTime maturityDate = effectiveDate.plusYears(10);
final Expiry expiry = new Expiry(effectiveDate.minusDays(2));
final InterestRateNotional notional = new InterestRateNotional(CURRENCY, 10000000);
final FloatingInterestRateLeg payLeg = new FloatingInterestRateLeg(ACT_360, QUARTERLY, REGION, MODIFIED_FOLLOWING, notional, true, LIBOR_3M, FloatingRateType.IBOR);
final FixedInterestRateLeg receiveLeg = new FixedInterestRateLeg(THIRTYU_360, SEMI_ANNUAL, REGION, MODIFIED_FOLLOWING, notional, true, 0.02);
final SwapSecurity underlyingSwap1 = new SwapSecurity(tradeDate, effectiveDate, maturityDate, COUNTERPARTY, payLeg, receiveLeg);
underlyingSwap1.setName("Receive fixed @ 2% v USD 3m Libor");
final SwapSecurity underlyingSwap2 = new SwapSecurity(tradeDate, effectiveDate, maturityDate, COUNTERPARTY, receiveLeg, payLeg);
underlyingSwap2.setName("Pay fixed @ 2% v USD 3m Libor");
SecurityDocument toAddDoc = new SecurityDocument();
toAddDoc.setSecurity(underlyingSwap1);
securityMaster.add(toAddDoc);
toAddDoc = new SecurityDocument();
toAddDoc.setSecurity(underlyingSwap2);