@Test
public void testSLParseFailure() throws Exception {

    final CharArrayBuffer buf = new CharArrayBuffer(64);
    buf.clear();
    buf.append("xxx 200 OK");
    try {
        this.parser.parseStatusLine(buf);
        Assert.fail();
    } catch (final ParseException e) {
        // expected
    }
    buf.clear();
    buf.append("HTTP/1.1 xxx OK");
    try {
        this.parser.parseStatusLine(buf);
        Assert.fail();
    } catch (final ParseException e) {
        // expected
    }
    buf.clear();
    buf.append("HTTP/1.1    ");
    try {
        this.parser.parseStatusLine(buf);
        Assert.fail();
    } catch (final ParseException e) {
        // expected
    }
    buf.clear();
    buf.append("HTTP/1.1");
    try {
        this.parser.parseStatusLine(buf);
        Assert.fail();
    } catch (final ParseException e) {
        // expected
    }
    buf.clear();
    buf.append("HTTP/1.1 -200 OK");
    try {
        this.parser.parseStatusLine(buf);
        Assert.fail();
    } catch (final ParseException e) {
        // expected
    }
}