### Question:
JpaRegionWidgetRepository implements RegionWidgetRepository { @Override public List<RegionWidget> getLimitedList(int offset, int pageSize) { TypedQuery<JpaRegionWidget> query = manager.createNamedQuery(JpaRegionWidget.REGION_WIDGET_GET_ALL, JpaRegionWidget.class); return CollectionUtils.<RegionWidget>toBaseTypedList(getPagedResultList(query, offset, pageSize)); }  @Override Class<? extends RegionWidget> getType(); @Override RegionWidget get(String id); @Override RegionWidget save(RegionWidget item); @Override void delete(RegionWidget item); @Override List<RegionWidget> getAll(); @Override List<RegionWidget> getLimitedList(int offset, int pageSize); @Override int getCountAll();  }### Answer:
@Test public void getLimitedSet(){ List<RegionWidget> regions = repository.getLimitedList(0, 10); assertThat(regions.size(), is(equalTo(10))); }