Document dom = dom( in( out ) );
assertEquals( "global", dom.getDocumentElement().getNodeName() );
}
public void testLogging() throws Exception {
LoggingInfo logging = factory.createLogging();
logging.setLevel( "CRAZY_LOGGING" );
logging.setLocation( "some/place/geoserver.log" );
logging.setStdOutLogging( true );
ByteArrayOutputStream out = out();
persister.save( logging, out );
LoggingInfo logging2 = persister.load(in(out),LoggingInfo.class);
assertEquals( logging, logging2 );
Document dom = dom( in( out ) );
assertEquals( "logging", dom.getDocumentElement().getNodeName() );