public void testHandleSimpleTag() {
SimpleAttributeSet attr = new SimpleAttributeSet();
attr.addAttribute(StyleConstants.NameAttribute, Tag.B.toString());
final Marker endMarker = new Marker();
final Marker startMarker = new Marker();
Tag tag = new Tag("mytag");
reader.registerTag(tag, reader.new TagAction() {
public void end(final Tag tag) {
endMarker.setAuxiliary(tag);
endMarker.setOccurred();
}