### Question:
IEXPrice implements Comparable<IEXPrice>, Serializable { @Override public int compareTo(final IEXPrice iexPrice) { return compare(this.getNumber(), iexPrice.getNumber()); } 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 compareShouldReturnOneForBiggerNumber() { final long biggerNumber = 12345678L; final long smallerNumber = 1234567L; final IEXPrice iexPrice_1 = new IEXPrice(biggerNumber); final IEXPrice iexPrice_2 = new IEXPrice(smallerNumber); assertThat(iexPrice_1.compareTo(iexPrice_2)).isEqualTo(1); }
@Test public void compareShouldReturnMinusOneForSmallerNumber() { final long biggerNumber = 12345678L; final long smallerNumber = 1234567L; final IEXPrice iexPrice_1 = new IEXPrice(smallerNumber); final IEXPrice iexPrice_2 = new IEXPrice(biggerNumber); assertThat(iexPrice_1.compareTo(iexPrice_2)).isEqualTo(-1); }
@Test public void compareShouldReturnZeroForEqualsNumbers() { final long number = 12345L; final IEXPrice iexPrice_1 = new IEXPrice(number); final IEXPrice iexPrice_2 = new IEXPrice(number); assertThat(iexPrice_1.compareTo(iexPrice_2)).isEqualTo(0); }