### Question:
X509Cert implements Serializable { public String issuerName(Issuer part) { logger.debug("Part: " + part); if (issuerPartMap == null) { loadIssuerParts(); } String issuerName = issuerPartMap.get(part.name()); logger.debug("Issuer name: " + issuerName); return issuerName; } X509Cert(X509Certificate cert);   X509Cert(String path); List<String> getCertificatePolicies(); X509Certificate getX509Certificate(); String issuerName(Issuer part); String issuerName(); boolean isValid(Date date); boolean isValid(); List<KeyUsage> getKeyUsages(); String getSerial(); String getSubjectName(SubjectName part); String getSubjectName();  }### Answer:
@Test public void testGetIssuerName() { Assert.assertEquals("cn=test of esteid-sk 2015, oid.2.5.4.97=ntree-10747013, o=as sertifitseerimiskeskus, c=ee", this.certificate.issuerName().toLowerCase()); }
@Test public void testGetIssuerNameByPart() { Assert.assertNull(this.certificate.issuerName(X509Cert.Issuer.EMAILADDRESS)); Assert.assertEquals("as sertifitseerimiskeskus", this.certificate.issuerName(X509Cert.Issuer.O).toLowerCase()); Assert.assertEquals("test of esteid-sk 2015", this.certificate.issuerName(X509Cert.Issuer.CN).toLowerCase()); Assert.assertEquals("ee", this.certificate.issuerName(X509Cert.Issuer.C).toLowerCase()); }