@Test
    void testExecution() {
        // Create the page template
        Choice page = Choice.createSingleton(importPage("Page.xml"));

        // Create a federated result
        Query query = new Query();
        Result result = new Result(query);
        result.hits().add(createHits("news", 2));
        result.hits().add(createHits("htmlSource", 1));

        // Resolve (noop here)
        Resolver resolver = new DeterministicResolver();
        Resolution resolution = resolver.resolve(page, query, result);

        // Execute
        Organizer organizer = new Organizer();
        organizer.organize(page, resolution, result);

        // Check rendering
        assertRendered(result, "PageResult.xml");
    }
Tests an example page.

@author bratseth
container-search/src/test/java/com/yahoo/search/pagetemplates/engine/test/PageTestCase.java