@Test
public void testSerializeException_ContentType()
                        throws Exception {

    XsltExceptionSerializer xsltExceptionSerializer = createXsltExceptionSerializer();
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    OWSException ex = new OWSException( EXCEPTION, NO_APPLICABLE_CODE );
    XMLExceptionSerializer exceptionSerializer = exceptionSerializer();
    HttpResponseBuffer response = responseBuffer( os );
    xsltExceptionSerializer.serializeException( response, ex, exceptionSerializer, null );
    serialize( xsltExceptionSerializer, os, ex );
    verify( response ).setContentType( eq( CONTENT_TYPE ) );
}