@@ -0,0 +1,1168 @@
+/**%0A * %0A */%0A%0Apackage org.apache.activemq.util;%0A%0Aimport java.io.IOException;%0Aimport java.util.Properties;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * @author rajdavies%0A * %0A */%0Apublic class MarshallingSupportTest extends TestCase%7B%0A%0A    /**%0A     * @throws java.lang.Exception%0A     * @see junit.framework.TestCase#setUp()%0A     */%0A    protected void setUp() throws Exception%7B%0A        super.setUp();%0A    %7D%0A%0A    /**%0A     * @throws java.lang.Exception%0A     * @see junit.framework.TestCase#tearDown()%0A     */%0A    protected void tearDown() throws Exception%7B%0A        super.tearDown();%0A    %7D%0A%0A    /**%0A     * Test method for %7B@link org.apache.activemq.util.MarshallingSupport#propertiesToString(java.util.Properties)%7D.%0A     * %0A     * @throws Exception%0A     */%0A    public void testPropertiesToString() throws Exception%7B%0A        Properties props=new Properties();%0A        for(int i=0;i%3C10;i++)%7B%0A            String key=%22key%22+i;%0A            String value=%22value%22+i;%0A            props.put(key,value);%0A        %7D%0A        String str=MarshallingSupport.propertiesToString(props);%0A        Properties props2=MarshallingSupport.stringToProperties(str);%0A        assertEquals(props,props2);%0A    %7D%0A%7D%0A

test for converting Properties to and from a String