assertEquals(2, spec.getAttributes().getAttributeCount());
checkAttributes(spec.getAttributes(), StyleConstants.NameAttribute, Tag.TEXTAREA);
Object contentModel = spec.getAttributes().getAttribute(StyleConstants.ModelAttribute);
assertNotNull(contentModel);
assertTrue(contentModel instanceof PlainDocument);
final PlainDocument plainDocument = (PlainDocument)contentModel;
assertEquals("", plainDocument.getText(0, plainDocument.getLength()));
reader.parseBuffer.add(new ElementSpec(null, ElementSpec.EndTagType));
assertEquals(3, reader.parseBuffer.size());
reader.textAreaContent(text1.toCharArray());
assertEquals(0, reader.charAttr.getAttributeCount());
assertEquals(3, reader.parseBuffer.size());
assertEquals(4, plainDocument.getLength());
assertEquals(text1, plainDocument.getText(0, plainDocument.getLength()));
reader.textAreaContent(text2.toCharArray());
assertEquals(0, reader.charAttr.getAttributeCount());
assertEquals(3, reader.parseBuffer.size());
assertEquals(9, plainDocument.getLength());
assertEquals(text1 + text2, plainDocument.getText(0, plainDocument.getLength()));
assertFalse(createMarker.isOccurred());
assertFalse(insertMarker.isOccurred());
}