diff --git a/core-java-modules/core-java-security-4/src/test/java/com/baeldung/keystorealias/KeystoreCertificateNameAliasUnitTest.java b/core-java-modules/core-java-security-4/src/test/java/com/baeldung/keystorealias/KeystoreCertificateNameAliasUnitTest.java index 47bc4c3425..26bd937ca4 100644 --- a/core-java-modules/core-java-security-4/src/test/java/com/baeldung/keystorealias/KeystoreCertificateNameAliasUnitTest.java +++ b/core-java-modules/core-java-security-4/src/test/java/com/baeldung/keystorealias/KeystoreCertificateNameAliasUnitTest.java @@ -36,8 +36,7 @@ public class KeystoreCertificateNameAliasUnitTest { assertThat(keystore.containsAlias(KEYSTORE_ALIAS)).isTrue(); X509Certificate x509Certificate = (X509Certificate) keystore.getCertificate(KEYSTORE_ALIAS); - String owner = x509Certificate.getSubjectX500Principal() - .getName(); + String owner = x509Certificate.getSubjectX500Principal().getName(); assertThat(owner.contains("commonName1")).isFalse(); }