### Question:
SinkEventAttributeSet implements SinkEventAttributes, Cloneable { public AttributeSet copyAttributes() { return ( (AttributeSet) clone() ); } SinkEventAttributeSet();  SinkEventAttributeSet( int size );  SinkEventAttributeSet( String... attributes );  SinkEventAttributeSet( AttributeSet attributes ); SinkEventAttributeSet unmodifiable(); boolean isEmpty(); int getAttributeCount(); boolean isDefined( Object attrName ); boolean isEqual( AttributeSet attr ); AttributeSet copyAttributes(); Enumeration<String> getAttributeNames(); Object getAttribute( Object key  ); boolean containsAttribute( Object name, Object value ); boolean containsAttributes( AttributeSet attributes ); void addAttribute( Object name, Object value ); void addAttributes( AttributeSet attributes  ); void removeAttribute( Object name ); void removeAttributes( Enumeration<?> names ); void removeAttributes( AttributeSet attributes  ); AttributeSet getResolveParent(); void setResolveParent( AttributeSet parent ); @Override Object clone(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString(); static final SinkEventAttributes UNDERLINE; static final SinkEventAttributes OVERLINE; static final SinkEventAttributes LINETHROUGH; static final SinkEventAttributes BOXED; static final SinkEventAttributes BOLD; static final SinkEventAttributes ITALIC; static final SinkEventAttributes MONOSPACED; static final SinkEventAttributes LEFT; static final SinkEventAttributes RIGHT; static final SinkEventAttributes CENTER; static final SinkEventAttributes JUSTIFY; }### Answer:
@Test public void testCopyAttributes() { sinkEventAttributeSet.addAttributes( SinkEventAttributeSet.ITALIC ); AttributeSet instance = sinkEventAttributeSet.copyAttributes(); assertTrue( instance.isEqual( sinkEventAttributeSet ) ); }