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