@Test
  public void streamKeys() throws Exception {
    try (final KeyValueStorage store = createStore()) {
      final KeyValueStorageTransaction tx = store.startTransaction();
      final List<byte[]> keys =
          Stream.of("0F", "10", "11", "12")
              .map(this::bytesFromHexString)
              .collect(toUnmodifiableList());
      keys.forEach(key -> tx.put(key, bytesFromHexString("0ABC")));
      tx.commit();
      assertThat(store.stream().map(Pair::getKey).collect(toUnmodifiableSet()))
          .containsExactlyInAnyOrder(keys.toArray(new byte[][] {}));
    }
  }
Stream keys.

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