assertNotNull( "contentGenerator is null", contentGenerator ); //$NON-NLS-1$
assertNotNull( "Logger is null", contentGenerator.getLogger() ); //$NON-NLS-1$
ByteArrayOutputStream out = new ByteArrayOutputStream();
IOutputHandler outputHandler = new SimpleOutputHandler( out, false );
String baseUrl = "http://testhost:testport/testcontent"; //$NON-NLS-1$
Map<String, IParameterProvider> parameterProviders = new HashMap<String, IParameterProvider>();
SimpleParameterProvider requestParams = new SimpleParameterProvider();
parameterProviders.put( IParameterProvider.SCOPE_REQUEST, requestParams );
SimpleParameterProvider pathParams = new SimpleParameterProvider();
pathParams.setParameter( "path", "/bogus" ); //$NON-NLS-1$//$NON-NLS-2$
parameterProviders.put( "path", pathParams ); //$NON-NLS-1$
SimpleUrlFactory urlFactory = new SimpleUrlFactory( baseUrl + "?" ); //$NON-NLS-1$
List<String> messages = new ArrayList<String>();
contentGenerator.setOutputHandler( outputHandler );
MimeTypeListener mimeTypeListener = new MimeTypeListener();
outputHandler.setMimeTypeListener( mimeTypeListener );
contentGenerator.setMessagesList( messages );
contentGenerator.setParameterProviders( parameterProviders );
contentGenerator.setSession( session );
contentGenerator.setUrlFactory( urlFactory );
try {