}
public void testTwoToplevels2() throws DecodingException {
List<XMLParticle> particles = new ArrayList<XMLParticle>();
particles.add(new XMLParticle("<balanced>"));
particles.add(new XMLParticle("<inner />"));
particles.add(new XMLParticle("</balanced>"));
particles.add(new XMLParticle("<illegal-top-level>"));
particles.add(new XMLParticle("</illegal-top-level>"));
try {
xmlRawToFragmentConverter.convert(particles);
fail("to consecutive elements are not allowed on top level");
} catch (DecodingException e) {