buffer.append(Http.CRLF);
buffer.append("group foo.bar.baz");
buffer.append(Http.CRLF);
NntpRequest request = new NntpRequest( null, new Properties(), new ByteArrayInputStream( buffer.toString().getBytes() ) );
ByteArrayOutputStream baos = new ByteArrayOutputStream();
NntpResponse response = new NntpResponse( baos );
request.nextCommand();
GroupHandler handler = new GroupHandler( forum );
assertTrue( "Assert that the handler handled the request.", handler.handleNntp( request, response ) );
assertTrue( baos.toString().indexOf("215 list of newsgroups follows" + Http.CRLF + ".") >= 0 );