### Question:
RDBStoreIterator implements TableIterator<byte[], ByteArrayKeyValue> { @Override public void removeFromDB() throws IOException { if (rocksDBTable == null) { throw new UnsupportedOperationException("remove"); } if (currentEntry != null) { rocksDBTable.delete(currentEntry.getKey()); } else { LOG.info("Unable to delete currentEntry as it does not exist."); } } RDBStoreIterator(RocksIterator iterator);  RDBStoreIterator(RocksIterator iterator, RDBTable table); @Override void forEachRemaining(
      Consumer<? super ByteArrayKeyValue> action); @Override boolean hasNext(); @Override ByteArrayKeyValue next(); @Override void seekToFirst(); @Override void seekToLast(); @Override ByteArrayKeyValue seek(byte[] key); @Override byte[] key(); @Override ByteArrayKeyValue value(); @Override void removeFromDB(); @Override void close();  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void testRemoveFromDBWithoutDBTableSet() throws Exception { RDBStoreIterator iter = new RDBStoreIterator(rocksDBIteratorMock); iter.removeFromDB(); }