}
public void testUnsupportedXMLCommentNested() {
List<XMLParticle> particles = new ArrayList<XMLParticle>();
particles.add(new XMLParticle("<name attr='val'>"));
particles.add(new XMLParticle("<!-- unsupported comment -->"));
particles.add(new XMLParticle("</name >"));
try {
xmlRawToFragmentConverter.convert(particles);
fail("comments are unsupported");
} catch (UnsupportedXMLException e) {
// test succeded