GatewayDescriptorFactory.store( descriptor, "xml", new BrokenWriter() );
fail( "Expected IOException" );
} catch( IOException e ) {
assertThat( e.getMessage(), containsString( "BROKEN" ) );
} finally {
console.release();
}
}
private Document parse( String xml ) throws IOException, SAXException, ParserConfigurationException {