assertEquals(bcdn1, "CN=CommonName,SN=SerialNumber,GIVENNAME=GivenName,INITIALS=Initials,SURNAME=SurName,OU=OrgUnit,O=Org,C=SE,2.2.2.2=2222Oid,1.1.1.1=1111Oid,3.3.3.3=3333Oid");
assertEquals(bcdn1,"CN=CommonName,SN=SerialNumber,GIVENNAME=GivenName,INITIALS=Initials,SURNAME=SurName,OU=OrgUnit,O=Org,C=SE,2.2.2.2=2222Oid,1.1.1.1=1111Oid");
    public void test04DNComponents() throws Exception {        log.debug(">test04DNComponents()");        // We try to examine the general case and som special cases, which we want to be able to handle        String dn1 = "CN=CommonName, O=Org, OU=OrgUnit, SerialNumber=SerialNumber, SurName=SurName, GivenName=GivenName, Initials=Initials, C=SE";        String bcdn1 = CertTools.stringToBCDNString(dn1);        log.debug("dn1: " + dn1);        log.debug("bcdn1: " + bcdn1);        assertEquals(bcdn1,                "CN=CommonName,SN=SerialNumber,GIVENNAME=GivenName,INITIALS=Initials,SURNAME=SurName,OU=OrgUnit,O=Org,C=SE");        dn1 = "CN=CommonName, O=Org, OU=OrgUnit, SerialNumber=SerialNumber, SurName=SurName, GivenName=GivenName, Initials=Initials, C=SE, 1.1.1.1=1111Oid, 2.2.2.2=2222Oid";        bcdn1 = CertTools.stringToBCDNString(dn1);        log.debug("dn1: " + dn1);        log.debug("bcdn1: " + bcdn1);        assertEquals(bcdn1,                "CN=CommonName,SN=SerialNumber,GIVENNAME=GivenName,INITIALS=Initials,SURNAME=SurName,OU=OrgUnit,O=Org,C=SE,2.2.2.2=2222Oid,1.1.1.1=1111Oid");        dn1 = "CN=CommonName, 3.3.3.3=3333Oid,O=Org, OU=OrgUnit, SerialNumber=SerialNumber, SurName=SurName, GivenName=GivenName, Initials=Initials, C=SE, 1.1.1.1=1111Oid, 2.2.2.2=2222Oid";        bcdn1 = CertTools.stringToBCDNString(dn1);        log.debug("dn1: " + dn1);        log.debug("bcdn1: " + bcdn1);        assertEquals(bcdn1,                "CN=CommonName,SN=SerialNumber,GIVENNAME=GivenName,INITIALS=Initials,SURNAME=SurName,OU=OrgUnit,O=Org,C=SE,2.2.2.2=2222Oid,1.1.1.1=1111Oid,3.3.3.3=3333Oid");        dn1 = "CN=CommonName, 3.3.3.3=3333Oid,O=Org, K=KKK, OU=OrgUnit, SerialNumber=SerialNumber, SurName=SurName, GivenName=GivenName, Initials=Initials, C=SE, 1.1.1.1=1111Oid, 2.2.2.2=2222Oid";        bcdn1 = CertTools.stringToBCDNString(dn1);        log.debug("dn1: " + dn1);        log.debug("bcdn1: " + bcdn1);        assertEquals(bcdn1,                "CN=CommonName,SN=SerialNumber,GIVENNAME=GivenName,INITIALS=Initials,SURNAME=SurName,OU=OrgUnit,O=Org,C=SE,2.2.2.2=2222Oid,1.1.1.1=1111Oid,3.3.3.3=3333Oid");        log.debug("<test04DNComponents()");    }