### Question:
BridgeOperationalState { public Optional<OvsdbTerminationPointAugmentation> getOvsdbTerminationPointAugmentation(InstanceIdentifier<?> iid) { Optional<TerminationPoint> tpOptional = getBridgeTerminationPoint(iid); if (tpOptional.isPresent()) { return Optional.ofNullable(tpOptional.get().augmentation(OvsdbTerminationPointAugmentation.class)); } return Optional.empty(); } BridgeOperationalState(DataBroker db, DataChangeEvent changes);  BridgeOperationalState(DataBroker db, Collection<DataTreeModification<Node>> changes); @SuppressWarnings("IllegalCatch") Optional<Node> getBridgeNode(InstanceIdentifier<?> iid); Optional<OvsdbBridgeAugmentation> getOvsdbBridgeAugmentation(InstanceIdentifier<?> iid); Optional<TerminationPoint> getBridgeTerminationPoint(InstanceIdentifier<?> iid); Optional<OvsdbTerminationPointAugmentation> getOvsdbTerminationPointAugmentation(InstanceIdentifier<?> iid); Optional<ControllerEntry> getControllerEntry(InstanceIdentifier<?> iid); Optional<ProtocolEntry> getProtocolEntry(InstanceIdentifier<ProtocolEntry> iid);  }### Answer:
@Test public void testGetOvsdbTerminationPointAugmentation() { Optional<OvsdbTerminationPointAugmentation> optOvsdbTermPoint = briOperationState .getOvsdbTerminationPointAugmentation(nodeIid); assertNotNull(optOvsdbTermPoint); verify(briOperationState, times(1)).getBridgeTerminationPoint(any(InstanceIdentifier.class)); verify(briOperationState, times(1)).getBridgeNode(any(InstanceIdentifier.class)); assertTrue(optOvsdbTermPoint.equals(Optional.empty())); TerminationPoint termPoint = mock(TerminationPoint.class); Optional<TerminationPoint> termPntOptional = Optional.of(termPoint); doReturn(termPntOptional).when(briOperationState).getBridgeTerminationPoint(any(InstanceIdentifier.class)); OvsdbTerminationPointAugmentation ovsdbTermPntAug = mock(OvsdbTerminationPointAugmentation.class); doReturn(ovsdbTermPntAug).when(termPoint).augmentation(OvsdbTerminationPointAugmentation.class); Optional<OvsdbTerminationPointAugmentation> ovsdbTermPointOpt = briOperationState .getOvsdbTerminationPointAugmentation(iid); assertNotNull(ovsdbTermPointOpt); assertTrue(ovsdbTermPointOpt.get() instanceof OvsdbTerminationPointAugmentation); }