@Test
public void testRLFormattingInvalidInput() throws Exception {

    final CharArrayBuffer buf = new CharArrayBuffer(64);
    final RequestLine requestline = new RequestLine(Method.GET.name(), "/stuff", HttpVersion.HTTP_1_1);
    try {
        this.formatter.formatRequestLine(null, requestline);
        Assert.fail("NullPointerException should habe been thrown");
    } catch (final NullPointerException ex) {
        // expected
    }
    try {
        this.formatter.formatRequestLine(buf, null);
        Assert.fail("NullPointerException should habe been thrown");
    } catch (final NullPointerException ex) {
        // expected
    }
}