### Question:
NetworkAware implements MappingProvider<Network> { @Override public void processUpdatedNeutronDto(Network originalNetwork, Network updatedNetwork) { InstanceIdentifier<GbpBridgeDomain> bdIid = getGbpBridgeDomainIid(originalNetwork.getUuid().getValue()); ReadWriteTransaction rwTx = dataBroker.newReadWriteTransaction(); deleteBridgeDomainIfPresent(rwTx, bdIid); GbpBridgeDomain updatedBridgeDomain = createGbpBridgeDomain(updatedNetwork); if (updatedBridgeDomain != null) { rwTx.put(LogicalDatastoreType.CONFIGURATION, bdIid, updatedBridgeDomain, true); } DataStoreHelper.submitToDs(rwTx); } NetworkAware(DataBroker dataBroker); @Override InstanceIdentifier<Network> getNeutronDtoIid(); @Override void processCreatedNeutronDto(Network network); static Class<? extends NetworkTypeBase> convertNetworkType(
            Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.networks.rev150712.NetworkTypeBase> base); @Override void processUpdatedNeutronDto(Network originalNetwork, Network updatedNetwork); @Override void processDeletedNeutronDto(Network network);  }### Answer:
@Test public void testProcessUpdatedNeutronDto() { netExtBuilder.setNetworkType(NetworkTypeFlat.class); Network network1 = createTestNetwork("net1", netExtBuilder.build()); Network network2 = new NetworkBuilder(network1).setName("net2") .addAugmentation(NetworkProviderExtension.class, netExtBuilder.build()) .build(); networkAware.processUpdatedNeutronDto(network1, network2); ReadOnlyTransaction rTx = dataBroker.newReadOnlyTransaction(); Optional<GbpBridgeDomain> optBrDomain = DataStoreHelper.readFromDs(LogicalDatastoreType.CONFIGURATION, networkAware.getGbpBridgeDomainIid(network2.getUuid().getValue()), rTx); assertTrue(optBrDomain.isPresent()); assertEquals(optBrDomain.get().getDescription(), "net2"); }