@Test
public void testBindingInNamespaceEscape() throws InvalidNameException {

	Assert.assertEquals(
		"cn=User\\\\,with\\\\,commas,ou=users,dc=example,dc=com",
		escapeLDAPName(
			"cn=User\\,with\\,commas,ou=users,dc=example,dc=com"));
	Assert.assertEquals(
		"cn=User\\\\2cwith\\\\2ccommas,ou=users,dc=example,dc=com",
		escapeLDAPName(
			"cn=User\\2cwith\\2ccommas,ou=users,dc=example,dc=com"));
}