@Test(expected = IllegalArgumentException.class)
public void fromJsonDetectsTooLongJsonContent() throws U2fBadInputException {

    SignResponse.fromJson(makeLongJson(20000));
    fail("fromJson did not detect too long JSON content.");
}