public void considersEntityAsNotNewWhenHavingIdSetAndUsingPrimitiveTypeForVersionProperty() {
EntityInformation<PrimitiveVersionProperty, Serializable> information = new JpaMetamodelEntityInformation<PrimitiveVersionProperty, Serializable>(
PrimitiveVersionProperty.class, em.getMetamodel());
PrimitiveVersionProperty pvp = new PrimitiveVersionProperty();
pvp.id = 100L;
assertThat(information.isNew(pvp), is(false));
}