@@ -0,0 +1,2907 @@
+package com.fasterxml.jackson.dataformat.xml.failing;%0A%0Aimport com.ctc.wstx.stax.WstxInputFactory;%0Aimport com.fasterxml.jackson.databind.MapperFeature;%0Aimport com.fasterxml.jackson.dataformat.xml.XmlFactory;%0Aimport com.fasterxml.jackson.dataformat.xml.XmlMapper;%0Aimport com.fasterxml.jackson.dataformat.xml.XmlTestBase;%0Aimport com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;%0Aimport com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;%0Aimport com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;%0Aimport com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;%0Aimport org.junit.Test;%0A%0Aimport javax.xml.stream.XMLInputFactory;%0Aimport java.util.List;%0A%0Aimport static com.fasterxml.jackson.databind.DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES;%0Aimport static javax.xml.stream.XMLInputFactory.IS_NAMESPACE_AWARE;%0A%0Apublic class XsiNilPrecedence385Test extends XmlTestBase%0A%7B%0A    protected static class Items %7B%0A        @JacksonXmlElementWrapper(useWrapping = false)%0A        @JacksonXmlProperty(localName = %22item%22)%0A        public List%3CItem%3E itemList;%0A    %7D%0A%0A    @JacksonXmlRootElement(localName = %22Items%22)%0A    protected static class Item %7B%0A        @JacksonXmlProperty(isAttribute = true)%0A        public String attr1;%0A        @JacksonXmlProperty(isAttribute = true)%0A        public String type;%0A        @JacksonXmlProperty(isAttribute = true)%0A        public Integer idx;%0A        @JacksonXmlText%0A        public String value;%0A    %7D%0A%0A    private XmlMapper MAPPER;%0A%0A    @Override%0A    public void setUp() throws Exception %7B%0A        super.setUp();%0A        XMLInputFactory ifactory = new WstxInputFactory();%0A        ifactory.setProperty(IS_NAMESPACE_AWARE, true);%0A%0A        XmlFactory xf = new XmlFactory(ifactory);%0A%0A        XmlMapper mapper = new XmlMapper(xf); // there are other overloads too%0A        mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);%0A        mapper.configure(FAIL_ON_UNKNOWN_PROPERTIES, false);%0A%0A        MAPPER = mapper;%0A    %7D%0A%0A    @Test%0A    public void test() throws Exception%0A    %7B%0A        String xml = %22%3Citems xmlns:xsi=%5C%22http://www.w3.org/2001/XMLSchema-instance%5C%22%3E%5Cn%22 +%0A                %22%3Citem xsi:nil=%5C%22true%5C%22 attr1=%5C%22a%5C%22 type=%5C%22est%5C%22 idx=%5C%221%5C%22 /%3E%5Cn%22 +%0A                %22%3Citem attr1=%5C%22b%5C%22 type=%5C%22est%5C%22 idx=%5C%222%5C%22 xsi:nil=%5C%22true%5C%22 /%3E%5Cn%22 +%0A                %22%3C/items%3E%22;%0A        Items bean = MAPPER.readValue(xml, Items.class);%0A%0A        assertNotNull(bean);%0A        assertNotNull(bean.itemList);%0A        assertEquals(2, bean.itemList.size());%0A        %0A        assertEquals(%22a%22,bean.itemList.get(0).attr1);%0A        assertEquals(%22est%22,bean.itemList.get(0).type);%0A        assertEquals(Integer.valueOf(%221%22),bean.itemList.get(0).idx);%0A%0A        assertEquals(%22b%22,bean.itemList.get(1).attr1);%0A        assertEquals(%22est%22,bean.itemList.get(1).type);%0A        assertEquals(Integer.valueOf(%222%22),bean.itemList.get(1).idx);%0A    %7D%0A%7D

Add failing test for #385