@Test
public void testPutAsUnsigedInt_max() throws Exception {

  ByteBuffer buffer = ByteBuffer.allocate(4);
  SubtleUtil.putAsUnsigedInt(buffer, 0xFFFFFFFFL);
  assertThat(buffer.array())
      .isEqualTo(new byte[] {(byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF});
}