### Question:
AbstractXmlSink extends SinkAdapter implements XmlMarkup { protected void writeSimpleTag( Tag t ) { writeSimpleTag( t, null ); }  void setInsertNewline( boolean insertNewline ); void setNameSpace( String ns ); String getNameSpace();  }### Answer:
@Test public void testWriteSimpleTag() { final Tag t = Tag.A; final SinkEventAttributes att = new SinkEventAttributeSet( SinkEventAttributeSet.BOLD ); final XmlTestSink instance = new XmlTestSink(); instance.writeSimpleTag( t ); assertEquals( "<a />", instance.getText() ); instance.writeSimpleTag( t, att ); assertEquals( "<a style=\"bold\" />", instance.getText() ); }