### Question:
BridgeOperationalState { public Optional<ControllerEntry> getControllerEntry(InstanceIdentifier<?> iid) { if (iid != null) { Optional<OvsdbBridgeAugmentation> ovsdbBridgeOptional = getOvsdbBridgeAugmentation(iid); if (ovsdbBridgeOptional.isPresent()) { Map<ControllerEntryKey, ControllerEntry> entries = ovsdbBridgeOptional.get().getControllerEntry(); if (entries != null) { ControllerEntryKey key = iid.firstKeyOf(ControllerEntry.class); if (key != null) { ControllerEntry entry = entries.get(key); if (entry != null) { return Optional.of(entry); } } } } } 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 testGetControllerEntry() { Optional<ControllerEntry> optController = briOperationState.getControllerEntry(nodeIid); verify(briOperationState, times(1)).getOvsdbBridgeAugmentation(any(InstanceIdentifier.class)); verify(briOperationState, times(1)).getBridgeNode(any(InstanceIdentifier.class)); assertNotNull(optController); assertTrue(optController.equals(Optional.empty())); }