@Test
public void testGetContentLengthIntDefaultValueThrowsNumberFormatException() {

    final HttpMessage message = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
    message.headers().set(HttpHeaderNames.CONTENT_LENGTH, "bar");
    try {
        HttpUtil.getContentLength(message, 1);
        fail();
    } catch (final NumberFormatException e) {
        // a number format exception is expected here
    }
}