### Question:
OpenVSwitchBridgeAddCommand implements TransactCommand { @Override public void execute(final TransactionBuilder transaction, final BridgeOperationalState state, final DataChangeEvent events, final InstanceIdentifierCodec instanceIdentifierCodec) { execute(transaction); }  @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);  }### Answer:
@SuppressWarnings({ "unchecked", "rawtypes" }) @Test public void testExecute() throws Exception { TransactionBuilder transaction = mock(TransactionBuilder.class); List<Operation> operations = new ArrayList<>(); when(transaction.getOperations()).thenReturn(operations); Bridge bridge = mock(Bridge.class); when(transaction.getTypedRowWrapper(eq(Bridge.class))).thenReturn(bridge); List<Insert> inserts = new ArrayList<>(); Insert insert = mock(Insert.class); inserts.add(insert); PowerMockito.mockStatic(TransactUtils.class); when(bridge.getSchema()).thenReturn(mock(GenericTableSchema.class)); PowerMockito.when(TransactUtils.extractInsert(any(TransactionBuilder.class), any(GenericTableSchema.class))) .thenReturn(inserts); OpenVSwitch ovs = mock(OpenVSwitch.class); when(transaction.getTypedRowWrapper(eq(OpenVSwitch.class))).thenReturn(ovs); PowerMockito.when(TransactUtils.extractNamedUuid(any(Insert.class))).thenReturn(mock(UUID.class)); doNothing().when(ovs).setBridges(any(Set.class)); Mutate<GenericTableSchema> mutate = mock(Mutate.class); Operations op = OvsdbNodeUpdateCommandTest.setOpField(); when(op.mutate(any(OpenVSwitch.class))).thenReturn(mutate); Column<GenericTableSchema, Set<UUID>> column = mock(Column.class); when(ovs.getBridgesColumn()).thenReturn(column); when(column.getSchema()).thenReturn(mock(ColumnSchema.class)); when(column.getData()).thenReturn(new HashSet<>()); when(mutate.addMutation(any(ColumnSchema.class), any(Mutator.class), any(Set.class))).thenReturn(mutate); when(transaction.add(any(Operation.class))).thenReturn(transaction); ovsBridgeAddCommand.execute(transaction, mock(BridgeOperationalState.class), mock(DataChangeEvent.class), mock(InstanceIdentifierCodec.class)); verify(transaction).add(any(Operation.class)); }