*/
public class TestAdaptiveExample extends LuceneTestCase {
@Test
public void testAdaptive () throws Exception {
ExampleResult res = new AdaptiveMain().runSample();
assertNotNull("Null result!", res);
assertNotNull("Null facet result!", res.getFacetResults());
assertEquals("Wrong number of results!",1, res.getFacetResults().size());
assertEquals("Wrong number of facets!",3, res.getFacetResults().get(0).getNumValidDescendants());
}