### Question:
OvsdbMonitorCallback implements MonitorCallBack { @Override public void update(TableUpdates result, DatabaseSchema dbSchema) { boolean isFirstUpdate = intialUpdate.compareAndSet(false, true); txInvoker.invoke(new OvsdbOperationalCommandAggregator(instanceIdentifierCodec, key, result, dbSchema, isFirstUpdate)); LOG.trace("Updated dbSchema: {} and result: {}", dbSchema, result); } OvsdbMonitorCallback(InstanceIdentifierCodec instanceIdentifierCodec, OvsdbConnectionInstance key,
            TransactionInvoker txInvoker); @Override void update(TableUpdates result, DatabaseSchema dbSchema); @Override void exception(Throwable exception);  }### Answer:
@Test public void testUpdate() { DatabaseSchema dbSchema = mock(DatabaseSchema.class); when(dbSchema.getVersion()) .thenReturn(Version.fromString(SouthboundConstants.AUTOATTACH_SUPPORTED_OVS_SCHEMA_VERSION)); ovsdbMonitorCallback.update(mock(TableUpdates.class), dbSchema); verify(txInvoker).invoke(any(OvsdbOperationalCommandAggregator.class)); }