### Question:
SinkEventAttributeSet implements SinkEventAttributes, Cloneable { @Override public Object clone() { SinkEventAttributeSet attr = new SinkEventAttributeSet( attribs.size() ); attr.attribs = new LinkedHashMap<>( attribs ); if ( resolveParent != null ) { attr.resolveParent = resolveParent.copyAttributes(); } return attr; } 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 testClone() { Object result = sinkEventAttributeSet.clone(); assertEquals( sinkEventAttributeSet, result ); sinkEventAttributeSet.addAttributes( SinkEventAttributeSet.MONOSPACED ); assertNotEquals( sinkEventAttributeSet, result ); result = sinkEventAttributeSet.clone(); assertEquals( sinkEventAttributeSet, result ); sinkEventAttributeSet.setResolveParent( SinkEventAttributeSet.CENTER ); result = sinkEventAttributeSet.clone(); assertEquals( sinkEventAttributeSet, result ); sinkEventAttributeSet.setResolveParent( SinkEventAttributeSet.BOXED ); }