@Test
  public void getAllKeysThat() throws Exception {
    try (final KeyValueStorage store = createStore()) {
      final KeyValueStorageTransaction tx = store.startTransaction();
      tx.put(bytesFromHexString("0F"), bytesFromHexString("0ABC"));
      tx.put(bytesFromHexString("10"), bytesFromHexString("0ABC"));
      tx.put(bytesFromHexString("11"), bytesFromHexString("0ABC"));
      tx.put(bytesFromHexString("12"), bytesFromHexString("0ABC"));
      tx.commit();
      Set<byte[]> keys = store.getAllKeysThat(bv -> Bytes.wrap(bv).toString().contains("1"));
      assertThat(keys.size()).isEqualTo(3);
      assertThat(keys)
          .containsExactlyInAnyOrder(
              bytesFromHexString("10"), bytesFromHexString("11"), bytesFromHexString("12"));
    }
  }
Gets all keys that.

@throws Exception the exception
testutil/src/main/java/org/hyperledger/besu/kvstore/AbstractKeyValueStorageTest.java