  @Test
  public void escapeUserGroupNames()
  {

    assertNull(LdapUtils.escapeCommonName(null));
    assertEquals("", LdapUtils.escapeCommonName(""));
    assertEquals("\\,", LdapUtils.escapeCommonName(","));
    assertEquals("\\,\\=\\+\\<\\>\\#\\;\\\\\\\"", LdapUtils.escapeCommonName(",=+<>#;\\\""));
  }