Money { public boolean isGreaterOrEqualThan(Money otherAmount) { return this.amount >= otherAmount.getAmount(); } Money();  Money(long amount);  Money(String amount); @Override boolean equals(Object o); @Override int hashCode(); long getAmount(); void setAmount(long amount); Money subtract(Money other); Money add(Money other); boolean isGreaterOrEqualThan(Money otherAmount); @Override String toString();  }
@Test public void shouldComputeIsGreaterThanOrEqual() { assertTrue(new Money("7").isGreaterOrEqualThan(new Money("6"))); assertTrue(new Money("6").isGreaterOrEqualThan(new Money("6"))); assertFalse(new Money("5").isGreaterOrEqualThan(new Money("6"))); }