MysqlUpdateMutation extends MysqlMutation { @VisibleForTesting static Map<String, Serializable> asColumnValues(@NonNull final Row row) { return Maps.transformValues(row.getColumns(), Column::getValue); } MysqlUpdateMutation(
      final MysqlMutationMetadata metadata, final Row previousRow, final Row row); @Override Set<String> getChangedColumns();  }
@Test public void testAsColumnValues() throws Exception { Table table = new Table( 1, "table_name", "db_name", null, ImmutableList.of(new ColumnMetadata("id", ColumnDataType.LONGLONG, false, 0)), ImmutableList.of()); Row row = new Row(table, ImmutableMap.of("id", new Column(table.getColumns().get("id"), 2))); assertEquals(ImmutableMap.of("id", 2), MysqlUpdateMutation.asColumnValues(row)); }