@Test
    public void testTooLarge() throws Exception {
        Tuple2<HttpResponse, Integer> v = FeedHandler.doCheckProtocolVersion(TOO_LARGE_NUMBER);
        assertTrue(v.first instanceof ErrorHttpResponse);
        ByteArrayOutputStream errorMsg = new ByteArrayOutputStream();
        ErrorHttpResponse errorResponse = (ErrorHttpResponse) v.first;
        errorResponse.render(errorMsg);
        assertEquals(errorMsg.toString(),
                "Could not parse X-Yahoo-Feed-Protocol-Versionheader of request (values: [1000000000]). " +
                            "Server supports protocol versions [3]");
        assertEquals(Integer.valueOf(-1), v.second);
    }
@author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
@since 5.7.0
vespaclient-container-plugin/src/test/java/com/yahoo/vespa/http/server/VersionsTestCase.java