public void testInvalidKeepAliveHeader() throws Exception {
final HttpContext context = new BasicHttpContext(null);
final HttpResponse response = new BasicHttpResponse(
new BasicStatusLine(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK"));
response.addHeader("Keep-Alive", "timeout=whatever, max=20");
final ConnectionKeepAliveStrategy keepAliveStrat = new DefaultConnectionKeepAliveStrategy();
final long d = keepAliveStrat.getKeepAliveDuration(response, context);
Assert.assertEquals(-1, d);
}