@@ -0,0 +1,1733 @@
+package org.jboss.loom.test.jaxb;%0A%0Aimport java.io.StringReader;%0Aimport java.util.List;%0Aimport javax.xml.bind.JAXBException;%0Aimport javax.xml.bind.Unmarshaller;%0Aimport javax.xml.bind.annotation.XmlElement;%0Aimport javax.xml.bind.annotation.XmlRootElement;%0Aimport javax.xml.bind.annotation.XmlSeeAlso;%0Aimport org.eclipse.persistence.oxm.annotations.XmlDiscriminatorNode;%0Aimport org.eclipse.persistence.oxm.annotations.XmlDiscriminatorValue;%0Aimport org.jboss.loom.utils.XmlUtils;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A%0A/**%0A *%0A * @author Ondrej Zizka, ozizka at redhat.com%0A */%0Apublic class JaxbInheritance2Test %7B    %0A    @Test%0A    public void testUnmarshall() throws JAXBException%7B%0A        final Unmarshaller marshaller = XmlUtils.createJaxbContext(Root.class).createUnmarshaller();%0A        Root root = (Root) marshaller.unmarshal( new StringReader(%0A                %22%3C?xml version=%5C%221.0%5C%22 encoding=%5C%22UTF-8%5C%22?%3E%5Cn%3Croot%3E%3Csub disc=%5C%22foo%5C%22/%3E%3Csub disc=%5C%22bar%5C%22/%3E%3C/root%3E%22) );%0A%0A        boolean rightClass = (DiscFoo.class.isAssignableFrom( root.subs.get(0).getClass() ));%0A        Assert.assertTrue( %22base elements go into subclasses%22, rightClass );%0A%0A        rightClass = (DiscBar.class.isAssignableFrom( root.subs.get(1).getClass() ));%0A        Assert.assertTrue( %22base elements go into subclasses%22, rightClass );%0A    %7D%0A%0A    @XmlRootElement%0A    public static class Root %7B%0A        @XmlElement(name = %22sub%22)%0A        List%3CBase%3E subs;%0A    %7D%0A%0A    @XmlDiscriminatorNode(%22@disc%22)%0A    @XmlSeeAlso(%7BDiscFoo.class, DiscBar.class%7D)%0A    public static abstract class Base %7B%7D%0A%0A    @XmlRootElement @XmlDiscriminatorValue(%22foo%22)%0A    public static class DiscFoo %7B%7D%0A%0A    @XmlRootElement @XmlDiscriminatorValue(%22bar%22)%0A    public static class DiscBar %7B%7D%0A%0A%7D%0A

Add 2nd JAXB inheritance test