### Question:
State extends AbstractTree { boolean deleteRecord(WriteableTransaction txn, TreeName indexTreeName) throws StorageRuntimeException { checkNotNull(txn, "txn must not be null"); checkNotNull(indexTreeName, "indexTreeName must not be null"); return txn.delete(getName(), keyForIndex(indexTreeName)); } State(TreeName name); @Override String valueToString(ByteString value);  }### Answer:
@Test public void testDeleteRecord() throws Exception { addFlags(COMPACTED, TRUSTED); storage.write(new WriteOperation() { @Override public void run(WriteableTransaction txn) throws Exception { state.deleteRecord(txn, indexTreeName); } }); assertThat(getFlags()).containsExactly(COMPACTED); }