package org.xbean.jmx;

import junit.framework.TestCase;
import org.xbean.spring.context.ClassPathXmlApplicationContext;

/**
 * $Rev$
 */
public class JMXTest extends TestCase {
    public void testSimple() throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("org/xbean/jmx/jmx-simple.xml");
        try {
            Object jmxService = context.getBean("jmxService");
            assertNotNull(jmxService);

            Object jmxExporter = context.getBean("jmxExporter");
            assertNotNull(jmxExporter);
        } finally {
            context.destroy();
        }
    }
}

@@ -120,16 +120,42 @@
 ext;%0D%0A%0D%0A
+import java.util.List;%0D%0A%0D%0A
 /**%0D%0A * 
@@ -598,24 +598,342 @@
 Exporter);%0D%0A
+            assertTrue(jmxExporter instanceof MBeanExporter);%0D%0A            List mbeans = ((MBeanExporter) jmxExporter).getMBeans();%0D%0A            assertNotNull(mbeans);%0D%0A            assertEquals(2, mbeans.size());%0D%0A            assertSame(jmxService, mbeans.get(0));%0D%0A            assertSame(jmxService, mbeans.get(1));%0D%0A
         %7D fi

Add a few asserts to the test