public static BytesInput fromInt(int intValue) {
    return new IntBytesInput(intValue);
  }
@Test
  public void testFromInt() throws IOException {
    int value = RANDOM.nextInt();
    ByteArrayOutputStream baos = new ByteArrayOutputStream(4);
    BytesUtils.writeIntLittleEndian(baos, value);
    byte[] data = baos.toByteArray();
    Supplier<BytesInput> factory = () -> BytesInput.fromInt(value);

    validate(data, factory);
  }