### Question:
PortHandler implements TransactionChainListener { void processDeleted(BaseEndpointByPort bebp) { LOG.trace("Deleting vpp-endpoint by BaseEndpointByPort {}", bebp); VppEndpointKey vppEpKey = new VppEndpointKey(bebp.getAddress(), bebp.getAddressType(), bebp.getContextId(), bebp.getContextType()); InstanceIdentifier<VppEndpoint> vppEpIid = createVppEndpointIid(vppEpKey); Optional<VppEndpoint> readVppEp = syncedChain.readFromDs(LogicalDatastoreType.CONFIGURATION, vppEpIid); if (readVppEp.isPresent()) { writeVppEndpoint(vppEpIid, null); LOG.debug("Deleted vpp-endpoint {}", vppEpKey); } } PortHandler(DataBroker dataBroker, NodeId routingNodeId); static Optional<FixedIps> resolveFirstFixedIps(Port port); @Override void onTransactionChainFailed(TransactionChain<?, ?> chain, AsyncTransaction<?, ?> transaction,
            Throwable cause); @Override void onTransactionChainSuccessful(TransactionChain<?, ?> chain);  }### Answer:
@Test public void testProcessDeleted() throws Exception { ReadWriteTransaction tx = dataBroker.newReadWriteTransaction(); putVppEp(port, bebp, tx); DataStoreHelper.submitToDs(tx); portHandler.processDeleted(bebp); ReadOnlyTransaction rTx = dataBroker.newReadOnlyTransaction(); Optional<VppEndpoint> optVppEp = DataStoreHelper.readFromDs(LogicalDatastoreType.CONFIGURATION, TestUtils.createVppEpIid(TestUtils.createVppEndpointKey(bebp)), rTx); assertFalse(optVppEp.isPresent()); }