assertEquals("CN=Foo/,OU=Foo\\, Dep,O=Foo\\, Inc,C=SE", StringTools.strip(bcdn21));
assertEquals("CN=Foo/,OU=Foo/, Dep,O=Foo/, Inc,C=SE", StringTools.strip(bcdn21));
   public void test10TestMultipleReversed() throws Exception {       log.debug(">test10TestMultipleReversed()");       // We try to examine the that we handle modern dc components for ldap correctly       String dn1 = "dc=com,dc=bigcorp,dc=se,ou=orgunit,ou=users,cn=Tomas G";       String bcdn1 = CertTools.stringToBCDNString(dn1);       log.debug("dn1: " + dn1);       log.debug("bcdn1: " + bcdn1);       assertEquals("CN=Tomas G,OU=users,OU=orgunit,DC=se,DC=bigcorp,DC=com", bcdn1);       String dn19 = "C=SE, dc=dc1,DC=DC2,O=EJBCA, O=oo, cn=foo, cn=bar";       assertEquals("CN=bar,CN=foo,O=oo,O=EJBCA,DC=DC2,DC=dc1,C=SE", CertTools.stringToBCDNString(dn19));       String dn20 = " C=SE,CN=\"foo, OU=bar\",  O=baz\\\\\\, quux  ";       // BC always escapes with backslash, it doesn't use quotes.       assertEquals("CN=foo\\, OU=bar,O=baz\\\\\\, quux,C=SE", CertTools.stringToBCDNString(dn20));       String dn21 = "C=SE,O=Foo\\, Inc, OU=Foo\\, Dep, CN=Foo\\'";       String bcdn21 = CertTools.stringToBCDNString(dn21);       assertEquals("CN=Foo\',OU=Foo\\, Dep,O=Foo\\, Inc,C=SE", bcdn21);               assertEquals("CN=Foo/,OU=Foo\\, Dep,O=Foo\\, Inc,C=SE", StringTools.strip(bcdn21));               log.debug("<test10TestMultipleReversed()");   }