public void test1() throws Exception {
StandaloneObjectFactory factory = new StandaloneObjectFactory();
TestOutputHandler.contentItem = new SimpleContentItem();
factory.defineObject( "testoutut", TestOutputHandler.class.getName(), StandaloneObjectFactory.Scope.LOCAL );
PentahoSystem.registerObjectFactory( factory );
StandaloneSession session = new StandaloneSession();
ByteArrayOutputStream out = new ByteArrayOutputStream();
SimpleOutputHandler handler = new SimpleOutputHandler( out, false );
MimeTypeListener listener = new MimeTypeListener();
handler.setMimeTypeListener( listener );
assertEquals( listener, handler.getMimeTypeListener() );
assertFalse( handler.allowFeedback() );
handler.setSession( session );
assertEquals( session, handler.getSession() );
handler.setContentItem( new SimpleContentItem(), null, null );
IContentItem content2 = handler.getOutputContentItem( "bogus", "testoutut:bogus", null, null );
assertEquals( TestOutputHandler.contentItem, content2 );
content2 = handler.getOutputContentItem( "bogus", "bogus", null, null );