### Question:
ForwardingManager { Optional<GbpBridgeDomain> readGbpBridgeDomainConfig(String name) { InstanceIdentifier<GbpBridgeDomain> bdIid = InstanceIdentifier.builder(Config.class) .child(GbpBridgeDomain.class, new GbpBridgeDomainKey(name)) .build(); ReadOnlyTransaction rTx = dataBroker.newReadOnlyTransaction(); Optional<GbpBridgeDomain> optBd = DataStoreHelper.readFromDs(LogicalDatastoreType.CONFIGURATION, bdIid, rTx); rTx.close(); return optBd; } ForwardingManager(@Nonnull InterfaceManager ifaceManager, @Nonnull AclManager aclManager,
                             @Nonnull NatManager natManager, @Nonnull RoutingManager routingManager,
                             @Nonnull BridgeDomainManager bdManager, @Nonnull LispStateManager lispStateManager,
                             @Nonnull LoopbackManager loopbackManager, @Nonnull FlatOverlayManager flatOverlayManager,
                             @Nonnull DhcpRelayHandler dhcpRelayHandler, @Nonnull DataBroker dataBroker); static Optional<IpPrefix> resolveIpPrefix(RendererNetworkDomain rendDomain);  }### Answer:
@Test public void testReadBridgeDomainConfig() throws Exception { GbpBridgeDomain bd = new GbpBridgeDomainBuilder().setId(BD_1).setType(NetworkTypeBase.class).build(); InstanceIdentifier<GbpBridgeDomain> bdIid = InstanceIdentifier.builder(Config.class).child(GbpBridgeDomain.class, bd.getKey()).build(); Optional<GbpBridgeDomain> bdOptional = fwdManager.readGbpBridgeDomainConfig(bd.getId()); Assert.assertFalse(bdOptional.isPresent()); WriteTransaction wTx = getDataBroker().newWriteOnlyTransaction(); wTx.put(LogicalDatastoreType.CONFIGURATION, bdIid, bd); wTx.submit().get(); bdOptional = fwdManager.readGbpBridgeDomainConfig(bd.getId()); Assert.assertTrue(bdOptional.isPresent()); Assert.assertEquals(bd, bdOptional.get()); }