SecureInterceptor { SecureProvider getSecureProviderImpl(Class<? extends SecureProvider> providerClass) { if (!providers.select(providerClass).isUnsatisfied()) { return providers.select(providerClass).get(); } return null; }  @AroundInvoke Object processSecure(InvocationContext ctx);  }
@Test public void getSecureProviderImplTest() { System.out.println("getSecureProviderImpl"); ((FakeCDI)providers).add(new MySecureProvider()); Object result = instance.getSecureProviderImpl(MySecureProvider.class); assertThat(result).isNotNull(); assertThat(result).isInstanceOf(MySecureProvider.class); ((FakeCDI)providers).clear(); result = instance.getSecureProviderImpl(MySecureProvider.class); assertThat(result).isNull(); }