@Test
public void testEquals()
{

  final LdapEntry le1 = LdapEntry.builder().build();
  Assert.assertEquals(le1, le1);
  Assert.assertEquals(LdapEntry.builder().build(), LdapEntry.builder().build());
  Assert.assertEquals(
    LdapEntry.builder()
      .dn("uid=1,dc=ldaptive,dc=org")
      .attributes(
        LdapAttribute.builder().name("uid").values("1").build(),
        LdapAttribute.builder().name("givenName").values("Steve").build(),
        LdapAttribute.builder().name("sn").values("McQueen").build())
      .build(),
    LdapEntry.builder()
      .dn("uid=1,dc=ldaptive,dc=org")
      .attributes(
        LdapAttribute.builder().name("uid").values("1").build(),
        LdapAttribute.builder().name("givenName").values("Steve").build(),
        LdapAttribute.builder().name("sn").values("McQueen").build())
      .build());
  Assert.assertNotEquals(
    LdapEntry.builder()
      .dn("uid=2,dc=ldaptive,dc=org")
      .attributes(
        LdapAttribute.builder().name("uid").values("1").build(),
        LdapAttribute.builder().name("givenName").values("Steve").build(),
        LdapAttribute.builder().name("sn").values("McQueen").build())
      .build(),
    LdapEntry.builder()
      .dn("uid=1,dc=ldaptive,dc=org")
      .attributes(
        LdapAttribute.builder().name("uid").values("1").build(),
        LdapAttribute.builder().name("givenName").values("Steve").build(),
        LdapAttribute.builder().name("sn").values("McQueen").build())
      .build());
  Assert.assertNotEquals(
    LdapEntry.builder()
      .dn("uid=1,dc=ldaptive,dc=org")
      .attributes(
        LdapAttribute.builder().name("uid").values("2").build(),
        LdapAttribute.builder().name("givenName").values("Steve").build(),
        LdapAttribute.builder().name("sn").values("McQueen").build())
      .build(),
    LdapEntry.builder()
      .dn("uid=1,dc=ldaptive,dc=org")
      .attributes(
        LdapAttribute.builder().name("uid").values("1").build(),
        LdapAttribute.builder().name("givenName").values("Steve").build(),
        LdapAttribute.builder().name("sn").values("McQueen").build())
      .build());
}