@Test
public void acceptConnectionWithTrustedCertificates() {

    final String trustedCertificates = String.join("\n",
            Certificates.CA_CRT,
            Certificates.SERVER_CRT,
            Certificates.CLIENT_CRT,
            Certificates.CLIENT_SELF_SIGNED_CRT);
    final Connection connection = createConnection(CONNECTION_ID).toBuilder()
            .trustedCertificates(trustedCertificates)
            .build();
    final ConnectionValidator underTest = getConnectionValidator();
    underTest.validate(connection, DittoHeaders.empty(), actorSystem);
}