CurrencyAmount implements ImmutableBean, Serializable { public static CurrencyAmount of(final Currency currency, final double amount) { return new CurrencyAmount(currency, amount); } @ImmutableConstructor private  CurrencyAmount(final Currency currency, final double amount); static CurrencyAmount of(final Currency currency, final double amount); static CurrencyAmount of(final String currencyCode, final double amount); @FromString static CurrencyAmount parse(final String amountStr); Currency getCurrency(); double getAmount(); CurrencyAmount plus(final CurrencyAmount amountToAdd); CurrencyAmount plus(final double amountToAdd); CurrencyAmount multipliedBy(final double valueToMultiplyBy); @Override @ToString String toString(); static CurrencyAmount.Meta meta(); @Override CurrencyAmount.Meta metaBean(); @Override Property<R> property(String propertyName); @Override Set<String> propertyNames(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_Currency_nullCurrency() { CurrencyAmount.of((Currency) null, A1); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_String_nullCurrency() { CurrencyAmount.of((String) null, A1); }