assertThat(returned, is(sameInstance(CollectionUtils.<PageTemplate>toBaseTypedList(templates))));
}
@Test
public void getDefaultPage_Valid(){
PageType pageType = PageType.get("user");
MongoDbPageTemplate found = new MongoDbPageTemplate();
expect(template.findOne(new Query(where("pageType").is(pageType.getPageType().toUpperCase()).andOperator(where("defaultTemplate").is(true))), MongoDbPageTemplate.class, CollectionNames.PAGE_TEMPLATE_COLLECTION)).andReturn(found);
converter.hydrate(found, PageTemplate.class);
expectLastCall();
replay(converter, template);
PageTemplate returned = templateRepository.getDefaultPage(pageType);