@Test
 public void testCreateForwardingContext4() {
   // case #4 - L2BridgeDomain is also present in DS but with null parent
   DataBroker dataBroker = getDataBroker();
   ReadWriteTransaction rwTx = dataBroker.newReadWriteTransaction();
   l2BridgeDomainBuilder.setParent(null);
   l2FloodDomainBuilder.setParent(l2BridgeDomainBuilder.build().getId());
   L2FloodDomain l2FloodDomain = l2FloodDomainBuilder.build();
   L2BridgeDomain l2BridgeDomain = l2BridgeDomainBuilder.build();
   writeL2FloodDomain(tenantId, l2FloodDomain, rwTx);
   writeL2BridgeDomain(tenantId, l2BridgeDomain, rwTx);
   MappingUtils.ForwardingCtx forwardingCtx =
       MappingUtils.createForwardingContext(tenantId, l2FloodDomainBuilder.build().getId(), rwTx);
   assertNotNull(forwardingCtx);
   assertTrue(forwardingCtx.getL2FloodDomain().equals(l2FloodDomain));
   assertTrue(forwardingCtx.getL2BridgeDomain().equals(l2BridgeDomain));
   assertNull(forwardingCtx.getL3Context());
 }
 @Before
 public void init() {
   l2FloodDomainBuilder = new L2FloodDomainBuilder();
   l2FloodDomainBuilder.setName(new Name("l2fdn")).setKey(new L2FloodDomainKey(l2FloodDomainId));
   l2BridgeDomainBuilder = new L2BridgeDomainBuilder();
   l2BridgeDomainBuilder
       .setName(new Name("l2bdn"))
       .setKey(new L2BridgeDomainKey(l2BridgeDomainId));
   l3ContextBuilder = new L3ContextBuilder();
   l3ContextBuilder.setName(new Name("l3cn")).setKey(new L3ContextKey(l3ContextId));
   Neutron_IPs neutronIp1 = new Neutron_IPs();
   Neutron_IPs neutronIp2 = new Neutron_IPs();
   Neutron_IPs neutronIp3 = new Neutron_IPs();
   neutronIp1.setIpAddress(ips[0]);
   neutronIp2.setIpAddress(ips[1]);
   neutronIp3.setIpAddress(ips[2]);
   emptyList = new ArrayList<>();
   singleIp = new ArrayList<>();
   singleIp.add(neutronIp1);
   multiIp = new ArrayList<>();
   multiIp.add(neutronIp1);
   multiIp.add(neutronIp2);
   multiIp.add(neutronIp3);
 }