### Question:
JpaRegionWidgetRepository implements RegionWidgetRepository { @Override public RegionWidget get(String id) { return manager.find(JpaRegionWidget.class, Long.parseLong(id)); }  @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 getById_validId() { RegionWidget regionWidget = repository.get(VALID_REGION_WIDGET_ID.toString()); assertThat(regionWidget, is(notNullValue())); assertThat(regionWidget.getId(), is(equalTo(VALID_REGION_WIDGET_ID.toString()))); }
@Test public void getById_invalidId() { RegionWidget regionWidget = repository.get(INVALID_REGION_WIDGET_ID.toString()); assertThat(regionWidget, is(nullValue())); }