@@ -0,0 +1,2118 @@
+package org.jboss.loom.test.jaxb;%0A%0Aimport java.io.File;%0Aimport java.util.List;%0Aimport junit.framework.TestCase;%0Aimport static junit.framework.TestCase.assertNotNull;%0Aimport org.jboss.loom.TestAppConfig;%0Aimport org.jboss.loom.ex.MigrationException;%0Aimport org.jboss.loom.migrators.logging.jaxb.CategoryBean;%0Aimport org.jboss.loom.migrators.mail.MailServiceBean;%0Aimport static org.jboss.loom.utils.XmlUtils.unmarshallBeans;%0Aimport org.junit.Test;%0A%0A/**%0A *%0A * @author Ondrej Zizka, ozizka at redhat.com%0A */%0Apublic class JaxbBeanTest extends TestCase %7B%0A    %0A    private void printTestBanner()%7B%0A        System.out.println(%22==========================================%22);%0A        System.out.println(%22===  %22 + TestAppConfig.getCallingMethodName(1) + %22  ===%22);%0A        System.out.println(%22==========================================%22);%0A    %7D%0A    %0A    @Test %0A    public void testMailServiceBean() throws MigrationException %7B%0A        printTestBanner();%0A        %0A        List%3CMailServiceBean%3E beans = unmarshallBeans( %0A            new File(%22testdata/as5configs/01_510all/server/all/deploy/mail-service.xml%22), %0A            %22/server/mbean%5B@code='org.jboss.mail.MailService'%5D%22, MailServiceBean.class);%0A        for( MailServiceBean ms : beans) %7B%0A            System.out.println( ms.getJndiName() );%0A            assertNotNull(ms.getJndiName());%0A            assertNotNull(ms.getMbeanName());%0A            assertNotNull(ms.getSmtpHost());%0A            //assertNotNull(ms.getSmtpUser());%0A        %7D%0A    %7D%0A    %0A    @Test %0A    public void testCategoryBean() throws MigrationException %7B%0A        printTestBanner();%0A        %0A        List%3CCategoryBean%3E beans = unmarshallBeans( %0A            new File(%22testdata/as5configs/01_510all/server/all/conf/jboss-log4j.xml%22), %0A            %22/configuration/category%22, CategoryBean.class); // %7Bhttp://jakarta.apache.org/log4j/%7D%0A        %0A        assertFalse( beans.isEmpty() );%0A        for( CategoryBean bean : beans) %7B%0A            System.out.println( bean.getCategoryName() );%0A            assertNotNull( bean.getCategoryName() );%0A            assertNotNull( bean.getCategoryValue());%0A        %7D%0A    %7D%0A    %0A%7D// class%0A

Add JAXB beans test