### Question:
CassandraCQLClient extends DB { @Override public Status update(String table, String key, HashMap<String, ByteIterator> values) { return insert(table, key, values); }  @Override void init(); @Override void cleanup(); @Override Status read(String table, String key, Set<String> fields,
      HashMap<String, ByteIterator> result); @Override Status scan(String table, String startkey, int recordcount,
      Set<String> fields, Vector<HashMap<String, ByteIterator>> result); @Override Status update(String table, String key,
      HashMap<String, ByteIterator> values); @Override Status insert(String table, String key,
      HashMap<String, ByteIterator> values); @Override Status delete(String table, String key); static final String YCSB_KEY; static final String KEYSPACE_PROPERTY; static final String KEYSPACE_PROPERTY_DEFAULT; static final String USERNAME_PROPERTY; static final String PASSWORD_PROPERTY; static final String HOSTS_PROPERTY; static final String PORT_PROPERTY; static final String PORT_PROPERTY_DEFAULT; static final String READ_CONSISTENCY_LEVEL_PROPERTY; static final String READ_CONSISTENCY_LEVEL_PROPERTY_DEFAULT; static final String WRITE_CONSISTENCY_LEVEL_PROPERTY; static final String WRITE_CONSISTENCY_LEVEL_PROPERTY_DEFAULT; static final String MAX_CONNECTIONS_PROPERTY; static final String CORE_CONNECTIONS_PROPERTY; static final String CONNECT_TIMEOUT_MILLIS_PROPERTY; static final String READ_TIMEOUT_MILLIS_PROPERTY; }### Answer:
@Test public void testUpdate() throws Exception { final String key = "key"; final HashMap<String, String> input = new HashMap<String, String>(); input.put("field0", "value1"); input.put("field1", "value2"); final Status status = client.insert(TABLE, key, StringByteIterator.getByteIteratorMap(input)); assertThat(status, is(Status.OK)); final Select selectStmt = QueryBuilder.select("field0", "field1") .from(TABLE) .where(QueryBuilder.eq(CassandraCQLClient.YCSB_KEY, key)) .limit(1); final ResultSet rs = session.execute(selectStmt); final Row row = rs.one(); assertThat(row, notNullValue()); assertThat(rs.isExhausted(), is(true)); assertThat(row.getString("field0"), is("value1")); assertThat(row.getString("field1"), is("value2")); }