### Question:
SouthboundProvider implements ClusteredDataTreeChangeListener<Topology>, AutoCloseable { public static DataBroker getDb() { return db; } @Inject  SouthboundProvider(@Reference final DataBroker dataBroker,
                              @Reference final EntityOwnershipService entityOwnershipServiceDependency,
                              @Reference final OvsdbConnection ovsdbConnection,
                              @Reference final DOMSchemaService schemaService,
                              @Reference final BindingNormalizedNodeSerializer bindingNormalizedNodeSerializer,
                              @Reference final SystemReadyMonitor systemReadyMonitor,
                              @Reference final DiagStatusService diagStatusService,
                              @Reference final UpgradeState upgradeState); static DataBroker getDb(); @PostConstruct void init(); @Override @PreDestroy void close(); void handleOwnershipChange(final EntityOwnershipChange ownershipChange); @Override void onDataTreeChanged(final Collection<DataTreeModification<Topology>> collection); void setSkipMonitoringManagerStatus(final boolean flag); static void setBridgesReconciliationInclusionList(final List<String> bridgeList); static void setBridgesReconciliationExclusionList(final List<String> bridgeList); static List<String> getBridgesReconciliationInclusionList(); static List<String> getBridgesReconciliationExclusionList(); UpgradeState getUpgradeState();  }### Answer:
@Test public void testGetDb() { when(entityOwnershipService.getOwnershipState(any(Entity.class))).thenReturn( java.util.Optional.of(EntityOwnershipState.from(true, true))); try (SouthboundProvider southboundProvider = new SouthboundProvider( getDataBroker(), entityOwnershipService, Mockito.mock(OvsdbConnection.class), Mockito.mock(DOMSchemaService.class), Mockito.mock(BindingNormalizedNodeSerializer.class), new TestSystemReadyMonitor(IMMEDIATE), Mockito.mock(DiagStatusService.class), Mockito.mock(UpgradeState.class))) { southboundProvider.init(); assertEquals(getDataBroker(), SouthboundProvider.getDb()); } }