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 );
forum.createNewsgroup("comp.lang.java");
forum.createNewsgroup("comp.lang.ada").addArticle( NntpTestUtil.createArticle("test.eml"), "localhost" );
forum.createNewsgroup("rec.music.makers").addArticle( NntpTestUtil.createArticle("test.eml"), "localhost" );