### Question:
DefaultPageLayoutService implements PageLayoutService { @Override public List<PageLayout> getAllUserSelectable() { return pageLayoutRepository.getAllUserSelectable(); } @Autowired  DefaultPageLayoutService(PageLayoutRepository pageLayoutRepository); @Override PageLayout getPageLayoutByCode(String code); @Override List<PageLayout> getAll(); @Override List<PageLayout> getAllUserSelectable();  }### Answer:
@Test public void getAllUserSelectable() { final List<PageLayout> VALID_PAGE_LAYOUTS = new ArrayList<PageLayout>(); expect(pageLayoutRepository.getAllUserSelectable()).andReturn(VALID_PAGE_LAYOUTS); replay(pageLayoutRepository); assertThat(pageLayoutService.getAllUserSelectable(), sameInstance(VALID_PAGE_LAYOUTS)); verify(pageLayoutRepository); }