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 );
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 );