### Question:
MongoDbPageLayoutRepository implements PageLayoutRepository { @Override public PageLayout get(String id) { throw new UnsupportedOperationException("No use for an id"); }  @Override PageLayout getByPageLayoutCode(String codename); @Override List<PageLayout> getAll(); @Override List<PageLayout> getLimitedList(int offset, int limit); @Override int getCountAll(); @Override List<PageLayout> getAllUserSelectable(); @Override Class<? extends PageLayout> getType(); @Override PageLayout get(String id); @Override PageLayout save(PageLayout item); @Override void delete(PageLayout item); void setTemplate(MongoOperations template); static final Class<MongoDbPageLayout> CLASS; }### Answer:
@Test public void get_Valid() { String id = "123"; thrown.expect(UnsupportedOperationException.class); thrown.expectMessage("No use for an id"); pageLayoutRepository.get(id); }