@@ -0,0 +1,1483 @@
+package com.github.tonivade.claudb.persistence;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.equalTo;%0Aimport java.util.concurrent.ThreadLocalRandom;%0Aimport java.util.stream.IntStream;%0Aimport java.util.stream.LongStream;%0Aimport org.junit.jupiter.params.ParameterizedTest;%0Aimport org.junit.jupiter.params.provider.MethodSource;%0A%0Aclass ByteUtilsTest %7B%0A%0A  @ParameterizedTest%0A  @MethodSource(%22intValues%22)%0A  void intToArray(int x) %7B%0A    byte%5B%5D array = ByteUtils.toByteArray(x);%0A    int y = ByteUtils.byteArrayToInt(array);%0A%0A    assertThat(x, equalTo(y));%0A  %7D%0A%0A  @ParameterizedTest%0A  @MethodSource(%22longValues%22)%0A  void longToArray(long x) %7B%0A    byte%5B%5D array = ByteUtils.toByteArray(x);%0A    long y = ByteUtils.byteArrayToLong(array);%0A%0A    assertThat(x, equalTo(y));%0A  %7D%0A%0A  @ParameterizedTest%0A  @MethodSource(%22lengthValues%22)%0A  void lengthToArray(int x) %7B%0A    byte%5B%5D array = ByteUtils.lengthToByteArray(x);%0A    int y = ByteUtils.byteArrayToLength(IntStream.range(0, array.length).map(i -%3E array%5Bi%5D).iterator()::next);%0A%0A    assertThat(x, equalTo(y));%0A  %7D%0A%0A  static IntStream intValues() %7B%0A    return IntStream.generate(() -%3E ThreadLocalRandom.current().nextInt()).limit(100);%0A  %7D%0A%0A  static IntStream lengthValues() %7B%0A    return IntStream.generate(() -%3E Math.abs(ThreadLocalRandom.current().nextInt())).limit(100);%0A  %7D%0A%0A  static LongStream longValues() %7B%0A    return LongStream.generate(() -%3E ThreadLocalRandom.current().nextLong()).limit(100);%0A  %7D%0A%7D%0A

add missing file