### Question:
IEXPrice implements Comparable<IEXPrice>, Serializable { @Override public int hashCode() { return Objects.hashCode(number); } IEXPrice(final long number); long getNumber(); BigDecimal toBigDecimal(); @Override int compareTo(final IEXPrice iexPrice); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void twoObjectsShouldBeEqualWithTheSameNumberInside() { final long number = 43215678L; final IEXPrice iexPrice_1 = new IEXPrice(number); final IEXPrice iexPrice_2 = new IEXPrice(number); assertThat(iexPrice_1).isEqualTo(iexPrice_2); assertThat(iexPrice_1.hashCode()).isEqualTo(iexPrice_2.hashCode()); }