### Question:
ConfigServiceKeyStore { public List<PublicKey> getVerifyingKeysForEntity(String entityId) { Collection<CertificateDto> certificates = certificatesConfigProxy.getSignatureVerificationCertificates(entityId); List<PublicKey> publicKeys = new ArrayList<>(); for (CertificateDto keyFromConfig : certificates) { String base64EncodedCertificateValue = keyFromConfig.getCertificate(); final X509Certificate certificate = x509CertificateFactory.createCertificate(base64EncodedCertificateValue); trustStoreForCertificateProvider.getTrustStoreFor(keyFromConfig.getFederationEntityType()) .ifPresent(keyStore -> validate(certificate, keyStore)); publicKeys.add(certificate.getPublicKey()); } return publicKeys; } @Inject  ConfigServiceKeyStore(
            CertificatesConfigProxy certificatesConfigProxy,
            CertificateChainValidator certificateChainValidator,
            TrustStoreForCertificateProvider trustStoreForCertificateProvider,
            X509CertificateFactory x509CertificateFactory); List<PublicKey> getVerifyingKeysForEntity(String entityId); PublicKey getEncryptionKeyForEntity(String entityId);  }### Answer:
@Test public void getVerifyingKeysForEntity_shouldGetVerifyingKeysFromConfigCertificateProxy() { configServiceKeyStore.getVerifyingKeysForEntity(issuerId); verify(certificatesConfigProxy).getSignatureVerificationCertificates(issuerId); }