@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public AcmeAuthorizationExecutor acmeAuthorizationExecutor() throws Exception {
            val locator = mock(AcmeAuthorizationExecutor.class);
            val challenge = new MockHttp01Challenge();
            when(locator.find(any())).thenReturn(Optional.of(challenge));

            val order = mock(Order.class);
            val certificate = mock(Certificate.class);
            when(order.getCertificate()).thenReturn(certificate);
            when(locator.execute(any(), any())).thenReturn(order);
            return locator;
        }
This is {@link AcmeCertificateManagerTests}.

@author Misagh Moayyed
@since 6.4.0
@deprecated since 7.3.0
support/cas-server-support-acme/src/test/java/org/apereo/cas/acme/AcmeCertificateManagerTests.java