static ByteBuffer fromEncodedKey(ByteString encodedKey) {
    return ByteBuffer.wrap(encodedKey.toByteArray());
  }
@Test
  @SuppressWarnings("ByteBufferBackingArray")
  public void testFromEncodedKey() {
    ByteString input = ByteString.copyFrom("hello world".getBytes(StandardCharsets.UTF_8));
    ByteBuffer encodedKey = FlinkKeyUtils.fromEncodedKey(input);
    assertThat(encodedKey.array(), is(input.toByteArray()));
  }