@Test
public void testPutAsUnsigedInt_minusOne_throws() throws Exception {

  ByteBuffer buffer = ByteBuffer.allocate(4);
  try {
    SubtleUtil.putAsUnsigedInt(buffer, -1);
    fail();
  } catch (GeneralSecurityException e) {
    // expected
  }
}