public void testClientProxyReplacement() throws InterruptedException {
dependentBean.setValue("Hello CDI");
final ClassReplacer replacer = new ClassReplacer();
replacer.queueClassForReplacement(AppScopedBean.class, AppScopedBean1.class);
replacer.queueClassForReplacement(DependentBean.class, DependentBean1.class);
replacer.replaceQueuedClasses();
Assert.assertEquals("Hello CDI", dependentBean.getValue());
}
}