### Question:
RadosClient extends DB { @Override public Status update(String table, String key, HashMap<String, ByteIterator> values) { Status rtn = delete(table, key); if (rtn.equals(Status.OK)) { return insert(table, key, values); } return rtn; }  void init(); void cleanup(); @Override Status read(String table, String key, Set<String> fields, HashMap<String, ByteIterator> result); @Override Status insert(String table, String key, HashMap<String, ByteIterator> values); @Override Status delete(String table, String key); @Override Status update(String table, String key, HashMap<String, ByteIterator> values); @Override Status scan(String table, String startkey, int recordcount, Set<String> fields,
      Vector<HashMap<String, ByteIterator>> result); static final String CONFIG_FILE_PROPERTY; static final String CONFIG_FILE_DEFAULT; static final String ID_PROPERTY; static final String ID_DEFAULT; static final String POOL_PROPERTY; static final String POOL_DEFAULT; }### Answer:
@Test public void updateTest() { radosclient.insert(TABLE_NAME, KEY2, DATA); Status result = radosclient.update(TABLE_NAME, KEY2, DATA_UPDATED); assertEquals(Status.OK, result); HashMap<String, ByteIterator> ret = new HashMap<String, ByteIterator>(10); radosclient.read(TABLE_NAME, KEY2, DATA.keySet(), ret); compareMap(DATA_UPDATED, ret); radosclient.delete(TABLE_NAME, KEY2); }