### Question:
SearchOptions { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + expressions.hashCode(); result = prime * result + sortOrder.hashCode(); return result; } SearchOptions(); SortOrder getSortOrder(); void setSortOrder(final SortOrder order); Map<String, String> getExpressions(); void setExpressions(final Map<String, String> expressions); SearchOptions withSortOrder(final SortOrder order); SearchOptions withExpressions(final Map<String, String> expressions); @Override int hashCode(); @Override boolean equals(final Object obj); static final SearchOptions DEFAULT; }### Answer:
@Test public void shouldGetSameHashCode_withDifferentObjects() { final SearchOptions searchOptions001 = new SearchOptions(); final SearchOptions searchOptions002 = new SearchOptions(); assertEquals(searchOptions001.hashCode(), searchOptions002.hashCode()); }