@Test
public void testSerialize()
                        throws Exception {

    URL xslt = XsltCapabilitiesSerializerTest.class.getResource( "capabilities2html.xsl" );
    Workspace workspace = mockWorkspace();
    XsltCapabilitiesSerializer xsltCapabilitiesSerializer = new XsltCapabilitiesSerializer( xslt, workspace );
    ByteArrayOutputStream responseStream = new ByteArrayOutputStream();
    xsltCapabilitiesSerializer.serialize( capabilitiesXmlStream(), responseStream );
    String html = responseStream.toString();
    assertThat( html, containsString( "WMS" ) );
    assertThat( html, containsString( "deegree 3 Utah Demo WMS" ) );
}