### Question:
JpaApplicationDataRepository implements ApplicationDataRepository { @Override public ApplicationData get(String id) { JpaSerializableApplicationData applicationData = (JpaSerializableApplicationData) manager.find(JpaApplicationData.class, Long.parseLong(id)); if (applicationData != null) { applicationData.deserializeData(); } return applicationData; }  @Override Class<? extends ApplicationData> getType(); @Override ApplicationData get(String id); @Override @Transactional JpaApplicationData save(ApplicationData item); @Override void delete(ApplicationData item); @Override List<ApplicationData> getAll(); @Override List<ApplicationData> getLimitedList(int offset, int limit); @Override int getCountAll(); @Override List<ApplicationData> getApplicationData(List<String> userIds, String appId); @Override JpaApplicationData getApplicationData(String personId, String appId);  }### Answer:
@Test public void get_valid() { JpaApplicationData applicationData = (JpaApplicationData) repository.get(VALID_APPLICATION_DATA_ID.toString()); validateApplicationData(applicationData); }
@Test public void get_invalid() { ApplicationData applicationData = repository.get("-1"); assertThat(applicationData, is(nullValue())); }