class Money {

  public boolean isGreaterThanOrEqual(Money other) {
    return amount.compareTo(other.amount) >= 0;
  }

}

class MoneyTest {

  private Money m1;
  private Money m2;

  @Test
  public void shouldCompare() {

    assertTrue(m2.isGreaterThanOrEqual(m2));
    assertTrue(m2.isGreaterThanOrEqual(m1));
  }

}