@Test
public void testPutAsUnsigedInt_tooLargeNumber_throws() throws Exception {

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