@Test
public void testEquals() throws Exception {

    // original object
    final Object originalObject = new LdapRdn("cn", "john.doe");
    // another object that has the same values as the original
    final Object identicalObject = new LdapRdn("cn", "john.doe");
    // another object with different values
    final Object differentObject = new LdapRdn("cn", "john.svensson");
    // a subclass with the same values as the original
    final Object subclassObject = new LdapRdn("cn", "john.doe") {
        private static final long serialVersionUID = 1L;
    };
    new EqualsTester(originalObject, identicalObject, differentObject,
            subclassObject);
}