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