Money { public BigDecimal getAmount() { return amount; } Money();  Money(int i);  Money(BigDecimal amount); boolean isGreaterThanOrEqual(Money other); Money add(Money other); Money subtract(Money other); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); BigDecimal getAmount(); void setAmount(BigDecimal amount); static final Money ZERO; }
@Test public void shouldReturnAmount() { assertEquals(new BigDecimal(10), new Money(10).getAmount()); }