assertEquals(1, reader.parseBuffer.size());
reader.addContent(text.toCharArray(), 1, 3, true);
assertEquals(1, reader.charAttr.getAttributeCount());
checkAttributes(reader.charAttr, StyleConstants.NameAttribute, Tag.CONTENT);
assertEquals(2, reader.parseBuffer.size());
ElementSpec spec = (ElementSpec)reader.parseBuffer.get(0);
assertSpec(spec, ElementSpec.StartTagType, ElementSpec.OriginateDirection, 0, null);
assertEquals(1, spec.getAttributes().getAttributeCount());
checkAttributes(spec.getAttributes(), StyleConstants.NameAttribute, Tag.H1);
spec = (ElementSpec)reader.parseBuffer.get(1);
assertEquals(1, spec.getAttributes().getAttributeCount());
checkAttributes(spec.getAttributes(), StyleConstants.NameAttribute, Tag.CONTENT);
assertSpec(spec, ElementSpec.ContentType, ElementSpec.OriginateDirection, 1, 3, text.toCharArray());
assertFalse(createMarker.isOccurred());
assertFalse(insertMarker.isOccurred());
}