### Question:
OvsdbControllerUpdateCommand extends AbstractTransactionCommand { @Override public void execute(final ReadWriteTransaction transaction) { if (updatedControllerRows != null && !updatedControllerRows.isEmpty()) { if (updatedBridgeRows != null && !updatedBridgeRows.isEmpty()) { updateController(transaction, updatedControllerRows, updatedBridgeRows); } else { updateController(transaction, updatedControllerRows); } } } OvsdbControllerUpdateCommand(final OvsdbConnectionInstance key,
            final TableUpdates updates, final DatabaseSchema dbSchema); @Override void execute(final ReadWriteTransaction transaction);  }### Answer:
@Test public void testExecute() throws Exception { Map<UUID, Controller> updatedControllerRows = new HashMap<>(); updatedControllerRows.put(mock(UUID.class), mock(Controller.class)); MemberModifier.field(OvsdbControllerUpdateCommand.class, "updatedControllerRows") .set(ovsdbControllerUpdateCommand, updatedControllerRows); MemberModifier.suppress(MemberMatcher.method(OvsdbControllerUpdateCommand.class, "updateController", ReadWriteTransaction.class, Map.class, Map.class)); MemberModifier.suppress(MemberMatcher.method(OvsdbControllerUpdateCommand.class, "updateController", ReadWriteTransaction.class, Map.class)); ReadWriteTransaction transaction = mock(ReadWriteTransaction.class); ovsdbControllerUpdateCommand.execute(transaction); verify(ovsdbControllerUpdateCommand).updateController(any(ReadWriteTransaction.class), any(Map.class)); Map<UUID, Bridge> updatedBridgeRows = new HashMap<>(); updatedBridgeRows.put(mock(UUID.class), mock(Bridge.class)); MemberModifier.field(OvsdbControllerUpdateCommand.class, "updatedBridgeRows").set(ovsdbControllerUpdateCommand, updatedBridgeRows); }