### Question:
JpaRegionRepository implements RegionRepository { @Override public Region get(String id) { return manager.find(JpaRegion.class, Long.parseLong(id)); }  @Override Class<? extends Region> getType(); @Override Region get(String id); @Override Region save(Region item); @Override void delete(Region item); @Override List<Region> getAll(); @Override List<Region> getLimitedList(int offset, int pageSize); @Override int getCountAll();  }### Answer:
@Test public void getById_validId() { JpaRegion region = (JpaRegion)repository.get(REGION_ID); assertThat(region, is(notNullValue())); assertThat(region.getEntityId(), is(equalTo(1L))); assertThat(region.getRegionWidgets().size(), is(equalTo(2))); }
@Test public void getById_invalidId() { JpaRegion region = (JpaRegion)repository.get(INVALID_REGION_ID); assertThat(region, is(nullValue())); }