### Question:
OrientDBClient extends DB { @Override public Status delete(String table, String key) { try { dictionary.remove(key); return Status.OK; } catch (Exception e) { e.printStackTrace(); } return Status.ERROR; }  @Override void init(); @Override void cleanup(); @Override Status insert(String table, String key, HashMap<String, ByteIterator> values); @Override Status delete(String table, String key); @Override Status read(String table, String key, Set<String> fields, HashMap<String, ByteIterator> result); @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);  }### Answer:
@Test public void deleteTest() { String user0 = "user0"; String user1 = "user1"; String user2 = "user2"; insertRow(user0); insertRow(user1); insertRow(user2); orientDBClient.delete(CLASS, user1); assertNotNull("Assert user0 still exists", orientDBDictionary.get(user0)); assertNull("Assert user1 does not exist", orientDBDictionary.get(user1)); assertNotNull("Assert user2 still exists", orientDBDictionary.get(user2)); }