### Question:
DitContentRule extends AbstractSchemaObject { @Override public String toString() { return SchemaObjectRenderer.OPEN_LDAP_SCHEMA_RENDERER.render( this ); } DitContentRule( String oid ); List<String> getAuxObjectClassOids(); void addAuxObjectClassOidOids( String oid ); void addAuxObjectClasses( ObjectClass objectClass ); void setAuxObjectClassOids( List<String> auxObjectClassOids ); void setAuxObjectClasses( List<ObjectClass> auxObjectClasses ); List<ObjectClass> getAuxObjectClasses(); List<String> getMayAttributeTypeOids(); void addMayAttributeTypeOids( String oid ); void addMayAttributeTypes( AttributeType attributeType ); void setMayAttributeTypeOids( List<String> mayAttributeTypeOids ); void setMayAttributeTypes( List<AttributeType> mayAttributeTypes ); List<AttributeType> getMayAttributeTypes(); List<String> getMustAttributeTypeOids(); void addMustAttributeTypeOids( String oid ); void addMustAttributeTypes( AttributeType attributeType ); void setMustAttributeTypeOids( List<String> mustAttributeTypeOids ); void setMustAttributeTypes( List<AttributeType> mustAttributeTypes ); List<AttributeType> getMustAttributeTypes(); List<String> getNotAttributeTypeOids(); void addNotAttributeTypeOids( String oid ); void addNotAttributeTypes( AttributeType attributeType ); void setNotAttributeTypeOids( List<String> notAttributeTypeOids ); void setNotAttributeTypes( List<AttributeType> notAttributeTypes ); List<AttributeType> getNotAttributeTypes(); @Override String toString(); @Override DitContentRule 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 = ditContentRule.toString(); assertNotNull( string ); assertTrue( string.startsWith( "ditcontentrule (" ) ); assertTrue( string.contains( " NAME " ) ); assertTrue( string.contains( "\n\tDESC " ) ); assertTrue( string.contains( "\n\tAUX " ) ); assertTrue( string.contains( "\n\tMUST" ) ); assertTrue( string.contains( "\n\tMAY" ) ); assertTrue( string.contains( "\n\tNOT" ) ); }