public static void checkValue(
     SpillableStateStore store,
     long bucketId,
     byte[] prefix,
     int index,
     List<String> expectedValue) {
   buffer.writeBytes(prefix);
   buffer.writeInt(index);
   checkValue(
       store, bucketId, buffer.toSlice().toByteArray(), expectedValue, 0, STRING_LIST_SERDE);
 }
 public static void checkValue(
     SpillableStateStore store, long bucketId, String key, byte[] prefix, String expectedValue) {
   buffer.writeBytes(prefix);
   STRING_SERDE.serialize(key, buffer);
   checkValue(store, bucketId, buffer.toSlice().toByteArray(), expectedValue, 0, STRING_SERDE);
 }
 public static Slice getKeySlice(byte[] id, int index, String key) {
   buffer.writeBytes(id);
   buffer.writeInt(index);
   STRING_SERDE.serialize(key, buffer);
   return buffer.toSlice();
 }