@Theory
  public void getParsedNumberAsLongOrThrow_notParsed_throws() throws Exception {
    JsonElement notParsedJsonElementWithNumber = new JsonPrimitive(42);
    assertThrows(
        IllegalArgumentException.class,
        () -> JsonParser.getParsedNumberAsLongOrThrow(notParsedJsonElementWithNumber));
  }
Tests for Tink's internal {@link JsonParser}.
java_src/src/test/java/com/google/crypto/tink/internal/JsonParserTest.java