  @Test
  void shouldThrowWhenReadingOversizedInt() {

    InvalidSSZTypeException ex = assertThrows(InvalidSSZTypeException.class, () -> {
      SSZ.decode(fromHexString("1122334455667788"), r -> r.readInt(64));
    });
    assertEquals("decoded integer is too large for an int", ex.getMessage());
  }