HttpResponse result = client.execute(new HttpGet(url.toExternalForm() + "index.jsf"));
String content = HttpUtils.getContent(result);
Assert.assertTrue(content, content.contains("FIRST: a"));
Assert.assertFalse(content, content.contains("SECOND: b"));
final RemoteClassReplacer replacer = new RemoteClassReplacer();
replacer.queueClassForReplacement(AppScopedBean.class, AppScopedBean1.class);
replacer.queueResourceForReplacement(getClass(), "index.xhtml", "index1.xhtml");
replacer.replaceQueuedClasses("test.war");
result = client.execute(new HttpGet(url.toExternalForm() + "index.jsf"));
content = HttpUtils.getContent(result);