### Question:
DBFieldMap { public boolean deleteEntry(Field fieldValue, long longValue) { if (!fieldClass.isInstance(fieldValue)) { throw new IllegalArgumentException("Instance of " + fieldClass.getName() + " expected"); } IndexField indexField = IndexField.getIndexField(fieldValue, longValue); try { long txId = dbh.startTransaction(); boolean success = indexTable.deleteRecord(indexField); dbh.endTransaction(txId, true); return success; } catch (IOException e) { throw new RuntimeException(e); } } DBFieldMap(Class<? extends Field> fieldClass, int cacheSizeMB); void dispose(); void addEntry(Field fieldValue, long longValue); boolean deleteEntry(Field fieldValue, long longValue); LongIterator iterator();  }### Answer:
@Test public void testDeleteEntry() { addEntries(); map.deleteEntry(new StringField("f2"), 2); map.deleteEntry(new StringField("f3"), 4); assertTrue(map.hasEntry(new StringField("f1"), 1)); assertTrue(!map.hasEntry(new StringField("f2"), 2)); assertTrue(map.hasEntry(new StringField("f2"), 3)); assertTrue(!map.hasEntry(new StringField("f3"), 4)); assertTrue(map.hasEntry(new StringField("f3"), 5)); assertTrue(map.hasEntry(new StringField("f4"), 6)); }