public void testElementSimpleAttributesMoreWhitespace() throws DecodingException {
List<XMLParticle> particles = new ArrayList<XMLParticle>();
particles.add(new XMLParticle("<balanced attr1 = \"1\" attr2=' 2 ' ns:at_tr3= \" \" />"));
XMLElement xmlElement = (XMLElement) xmlRawToFragmentConverter.convert(particles);
assertNotNull(xmlElement);
assertEquals("balanced", xmlElement.getName());
List<Attribute> attributes = xmlElement.getAttributes();
assertEquals(3, attributes.size());
assertEquals("attr1", attributes.get(0).getName());
assertEquals("1", attributes.get(0).getValue());
assertEquals("attr2", attributes.get(1).getName());
assertEquals(" 2 ", attributes.get(1).getValue());