assertThat(applicationDataConverter.convert(applicationData), is(nullValue()));
}
@Test
public void newApplicationData() {
ApplicationData applicationData = new ApplicationDataImpl();
applicationData.setId(1L);
applicationData.setAppUrl("url");
applicationData.setData(new HashMap<String, String>());
applicationData.setUserId("userid");
JpaApplicationData converted = applicationDataConverter.convert(applicationData);
assertThat(converted, is(not(sameInstance(applicationData))));
assertThat(converted, is(instanceOf(JpaApplicationData.class)));
assertThat(converted.getId(), is(equalTo(applicationData.getId())));
assertThat(converted.getEntityId(), is(equalTo(applicationData.getId())));
assertThat(converted.getAppUrl(), is(equalTo(applicationData.getAppUrl())));
assertThat(converted.getData(), is(equalTo(applicationData.getData())));
assertThat(converted.getUserId(), is(equalTo(applicationData.getUserId())));
}