@Test
public void testSerializeException()
                        throws Exception {

    XsltExceptionSerializer xsltExceptionSerializer = createXsltExceptionSerializer();
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    OWSException ex = new OWSException( EXCEPTION, NO_APPLICABLE_CODE );
    serialize( xsltExceptionSerializer, os, ex );
    String htmlException = os.toString();
    assertThat( htmlException, containsString( EXCEPTION ) );
    assertThat( htmlException, containsString( NO_APPLICABLE_CODE ) );
}