Money extends Magnitude<Money> { public BigDecimal getAmount() { return BigDecimal.valueOf(amount, getFractionalDigits()); } Money(final double amount, final String currency);  Money(final long amount, final String currency); Money add(final Money money); double doubleValue(); float floatValue(); BigDecimal getAmount(); String getCurrency(); boolean hasSameCurrency(final Money money); int intValue(); @Override boolean isEqualTo(final Money magnitude); boolean isGreaterThanZero(); @Override boolean isLessThan(final Money magnitude); boolean isLessThanZero(); boolean isZero(); long longValue(); Money subtract(final Money money); @Override boolean equals(final Object other); boolean equals(final Money other); @Override int hashCode(); @Override String toString();  }
@Test public void testGetAmount() { final Money m1 = new Money(100, "pds"); assertEquals(BigDecimal.valueOf(10000, 2), m1.getAmount()); }