@@ -0,0 +1,2044 @@
+package jamex.link;%0A%0Aimport java.net.URL;%0Aimport javax.jms.Connection;%0Aimport javax.jms.Message;%0Aimport javax.jms.Session;%0Aimport javax.jms.TextMessage;%0Aimport org.junit.AfterClass;%0Aimport static org.junit.Assert.*;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Apublic class MessageTransformerTestCase%0A%7B%0A  @BeforeClass%0A  public static void startupBroker()%0A    throws Exception%0A  %7B%0A    TestHelper.startupBroker();%0A  %7D%0A%0A  @AfterClass%0A  public static void shutdownBroker()%0A    throws Exception%0A  %7B%0A    TestHelper.shutdownBroker();%0A  %7D%0A%0A  @Test%0A  public void xsltTransformer()%0A    throws Exception%0A  %7B%0A    // Create the connection.%0A    final Connection connection = TestHelper.createConnection();%0A    connection.start();%0A%0A    // Create the session%0A    final Session session = connection.createSession( false, Session.AUTO_ACKNOWLEDGE );%0A%0A    final String xsl = %22%3C?xml version=%5C%221.0%5C%22 encoding=%5C%22ISO-8859-1%5C%22?%3E%5Cn%22 +%0A                       %22%3Cxsl:stylesheet version=%5C%221.0%5C%22 xmlns:xsl=%5C%22http://www.w3.org/1999/XSL/Transform%5C%22%3E%5Cn%22 +%0A                       %22%3Cxsl:output method=%5C%22xml%5C%22 indent=%5C%22no%5C%22 omit-xml-declaration=%5C%22yes%5C%22 standalone=%5C%22no%5C%22/%3E%5Cn%22 +%0A                       %22%3Cxsl:template match=%5C%22document%5C%22%3E%5Cn%22 +%0A                       %22  %3Cace%3E%3Cxsl:value-of select=%5C%22title%5C%22/%3E%3C/ace%3E%5Cn%22 +%0A                       %22%3C/xsl:template%3E%5Cn%22 +%0A                       %22%3C/xsl:stylesheet%3E%5Cn%22;%0A%0A    final URL url = TestHelper.createURLForContent( MessageTransformerTestCase.class, xsl, %22xsl%22 );%0A    Message result = null;%0A    try%0A    %7B%0A      final TextMessage message = session.createTextMessage( %22%3Cdocument%3E%3Ctitle%3EX%3C/title%3E%3C/document%3E%22 );%0A      result = MessageTransformer.newXSLTransformer( url ).transformMessage( session, message );%0A    %7D%0A    catch( final Exception e )%0A    %7B%0A      e.printStackTrace();%0A      fail( %22Expected to be able to verify message but got %22 + e );%0A    %7D%0A    assertEquals( %22result.getText()%22,%0A                  %22%3Cace%3EX%3C/ace%3E%22,%0A                  ( (TextMessage)result ).getText() );%0A%0A    session.close();%0A    connection.stop();%0A  %7D%0A%7D

Add test for transformer