### Question:
TerminationPointCreateCommand implements TransactCommand { @Override public void execute(final TransactionBuilder transaction, final BridgeOperationalState state, final DataChangeEvent events, final InstanceIdentifierCodec instanceIdentifierCodec) { execute(transaction, state, TransactUtils.extractCreated(events, OvsdbTerminationPointAugmentation.class), TransactUtils.extractCreatedOrUpdated(events, Node.class), instanceIdentifierCodec); }  @Override void execute(final TransactionBuilder transaction, final BridgeOperationalState state,
            final DataChangeEvent events, final InstanceIdentifierCodec instanceIdentifierCodec); @Override void execute(final TransactionBuilder transaction, final BridgeOperationalState state,
            final Collection<DataTreeModification<Node>> modifications,
            final InstanceIdentifierCodec instanceIdentifierCodec); static void stampInstanceIdentifier(final TransactionBuilder transaction,
            final InstanceIdentifier<OvsdbTerminationPointAugmentation> iid, final String interfaceName,
            final InstanceIdentifierCodec instanceIdentifierCodec);  }### Answer:
@SuppressWarnings({ "unchecked", "rawtypes"}) @Test @Ignore("This needs to be rewritten") public void testExecute() throws Exception { MemberModifier.suppress(MemberMatcher.method(TerminationPointCreateCommand.class, "getChanges")); DataChangeEvent asynEvent = mock(DataChangeEvent.class); Map<InstanceIdentifier<?>, DataObject> map = new HashMap<>(); OvsdbTerminationPointAugmentation terminationPoint = mock(OvsdbTerminationPointAugmentation.class); InstanceIdentifier terminationPointIid = mock(InstanceIdentifier.class); map.put(terminationPointIid, terminationPoint); when(asynEvent.getCreatedData()).thenReturn(map); when(terminationPoint.getName()).thenReturn(TERMINATION_POINT_NAME); Interface ovsInterface = mock(Interface.class); PowerMockito.mockStatic(TyperUtils.class); TransactionBuilder transaction = mock(TransactionBuilder.class); when(transaction.getTypedRowWrapper(eq(Interface.class))).thenReturn(ovsInterface); Operations op = (Operations) setField("op"); Insert<GenericTableSchema> insert = mock(Insert.class); when(op.insert(any(Interface.class))).thenReturn(insert); when(insert.withId(anyString())).thenReturn(insert); MemberModifier.suppress(MemberMatcher.method(TerminationPointCreateCommand.class, "stampInstanceIdentifier", TransactionBuilder.class, InstanceIdentifier.class, String.class)); when(ovsInterface.getName()).thenReturn(INTERFACE_NAME); Port port = mock(Port.class); when(transaction.getTypedRowWrapper(eq(Port.class))).thenReturn(port); when(op.insert(any(Port.class))).thenReturn(insert); Bridge bridge = mock(Bridge.class); when(transaction.getTypedRowWrapper(eq(Bridge.class))).thenReturn(bridge); doNothing().when(bridge).setName(anyString()); PowerMockito.whenNew(UUID.class).withAnyArguments().thenReturn(mock(UUID.class)); doNothing().when(bridge).setPorts(any(HashSet.class)); BridgeOperationalState bridgeOpState = mock(BridgeOperationalState.class); terminationPointCreateCommand.execute(transaction, bridgeOpState, asynEvent, mock(InstanceIdentifierCodec.class)); }