protected HtmlUnitEnvironment facesEnvironment;
private StringBuilder loggedJavaScript = new StringBuilder();
@Before
public void setUp() throws Exception {
facesEnvironment = new HtmlUnitEnvironment();
ApplicationServer facesServer = facesEnvironment.getServer();
facesServer.addResource("/resources/" + SIMULATION_SCRIPT_NAME, "org/ajax4jsf/component/" + SIMULATION_SCRIPT_NAME);
facesServer.addResource("/resources/" + QUEUEAJAX_SCRIPT_NAME, "org/ajax4jsf/component/" + QUEUEAJAX_SCRIPT_NAME);
facesServer.addResource("/test.xhtml", "org/ajax4jsf/component/test.xhtml");