### Question:
AttributeType extends AbstractSchemaObject implements Cloneable { @Override public String toString() { return SchemaObjectRenderer.OPEN_LDAP_SCHEMA_RENDERER.render( this ); } AttributeType( String oid ); boolean isSingleValued(); void setSingleValued( boolean singleValued ); boolean isUserModifiable(); void setUserModifiable( boolean userModifiable ); boolean isCollective(); void setCollective( boolean collective ); boolean isRelaxed(); void setRelaxed( boolean isRelaxed ); UsageEnum getUsage(); void setUsage( UsageEnum usage ); long getSyntaxLength(); void setSyntaxLength( long length ); AttributeType getSuperior(); String getSuperiorOid(); void setSuperior( AttributeType superior ); void setSuperior( String newSuperiorOid ); void setSuperiorOid( String superiorOid ); String getSuperiorName(); LdapSyntax getSyntax(); void setSyntax( LdapSyntax syntax ); String getSyntaxName(); String getSyntaxOid(); void setSyntaxOid( String syntaxOid ); MatchingRule getEquality(); void setEquality( MatchingRule equality ); String getEqualityOid(); void setEqualityOid( String equalityOid ); String getEqualityName(); MatchingRule getOrdering(); void setOrdering( MatchingRule ordering ); String getOrderingName(); String getOrderingOid(); void setOrderingOid( String orderingOid ); MatchingRule getSubstring(); void setSubstring( MatchingRule substring ); String getSubstringName(); String getSubstringOid(); void setSubstringOid( String substrOid ); boolean isUser(); boolean isOperational(); boolean isAncestorOf( AttributeType descendant ); boolean isHR(); boolean isDescendantOf( AttributeType ancestor ); @Override String toString(); @Override AttributeType copy(); @Override int hashCode(); @Override boolean equals( Object o ); @Override void clear(); static final long serialVersionUID; }### Answer:
@Test public void testToString() throws Exception { String string = attributeType.toString(); assertNotNull( string ); assertTrue( string.startsWith( "attributetype (" ) ); assertTrue( string.contains( " NAME " ) ); assertTrue( string.contains( "\n\tDESC " ) ); assertTrue( string.contains( "\n\tSUP " ) ); assertTrue( string.contains( "\n\tUSAGE" ) ); }