@Test
public void testSLFormattingInvalidInput() throws Exception {

    final CharArrayBuffer buf = new CharArrayBuffer(64);
    final StatusLine statusline = new StatusLine(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
    try {
        this.formatter.formatStatusLine(null, statusline);
        Assert.fail("NullPointerException should habe been thrown");
    } catch (final NullPointerException ex) {
        // expected
    }
    try {
        this.formatter.formatStatusLine(buf, null);
        Assert.fail("NullPointerException should habe been thrown");
    } catch (final NullPointerException ex) {
        // expected
    }
}