### Question:
Input implements Serializable { @Id @GeneratedValue public long getId() { return id; } Input();  Input(String name); @Id @GeneratedValue long getId(); Input setId(long id); String getName(); void setName(String name); @XmlTransient @JsonIgnore @ManyToMany(fetch = FetchType.EAGER, mappedBy = "inputs", cascade = CascadeType.ALL) List<Execution> getExecutions(); @XmlTransient @JsonIgnore void setExecutions(List<Execution> executions); @Override boolean equals(Object o); @Override int hashCode(); @Transient String getIdentifier();  }### Answer:
@Test public void testIdGenerator() throws EntityStorageException { HibernateUtil.clear(); Input input = new Input("input"); long oldId = input.getId(); HibernateUtil.store(input); assertNotEquals(oldId, input.getId()); oldId = input.getId(); HibernateUtil.store(input); assertNotEquals(oldId, input.getId()); HibernateUtil.clear(); }