// This is expected
}
// Test proper behavior with pagelet only
query = new SearchQueryImpl(site);
query.withPagelet(new PageletImpl(pagelet.getModule(), pagelet.getIdentifier()));
query.atPosition(position);
assertEquals(1, query.getPagelets().size());
Collection<SearchTerms<Pagelet>> pagelets = query.getPagelets();
Pagelet firstPagelet = pagelets.iterator().next().getTerms().iterator().next();
assertEquals(position, firstPagelet.getURI().getPosition());
// Test proper behavior with pagelet only
query = new SearchQueryImpl(site);
query.withPagelet(new PageletImpl(pagelet.getModule(), pagelet.getIdentifier()));
query.inComposer(composer);
query.atPosition(position);
assertEquals(1, query.getPagelets().size());
pagelets = query.getPagelets();
firstPagelet = pagelets.iterator().next().getTerms().iterator().next();