### Question:
Result implements Serializable { @Id @GeneratedValue public long getId() { return this.id; } Result();  Result(String fileName);  Result(String resultPathPrefix, ResultType type); @Id @GeneratedValue long getId(); Result setId(long id); @Column(name = "fileName", unique = true) String getFileName(); Result setFileName(String filePath); @ManyToOne @JoinColumn(name = "execution") @XmlTransient @JsonIgnore Execution getExecution(); @XmlTransient @JsonIgnore Result setExecution(Execution execution); String getTypeName(); void setTypeName(String typeName); ResultType getType(); void setType(ResultType type); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test @SuppressWarnings(Constants.SUPPRESS_WARNINGS_UNCHECKED) public void testGetId() throws EntityStorageException { HibernateUtil.clear(); HibernateUtil.store(new Result("file1")); HibernateUtil.store(new Result("file2")); List<Result> actualResults = (List<Result>) HibernateUtil.queryCriteria(Result.class); long actualId1 = actualResults.get(0).getId(); long actualId2 = actualResults.get(1).getId(); assertEquals(Math.abs(actualId1 - actualId2), 1); HibernateUtil.clear(); }