UnorderedCurrencyPair implements ImmutableBean,
    UniqueIdentifiable, ObjectIdentifiable, Serializable { public static UnorderedCurrencyPair of(Currency ccy1, Currency ccy2) { return new UnorderedCurrencyPair(ccy1, ccy2); } @ImmutableConstructor private  UnorderedCurrencyPair(Currency currency1, Currency currency2); static UnorderedCurrencyPair of(Currency ccy1, Currency ccy2); static UnorderedCurrencyPair of(UniqueId uniqueId); @FromString static UnorderedCurrencyPair parse(final String pairStr); Currency getFirstCurrency(); Currency getSecondCurrency(); @Override ObjectId getObjectId(); @Override UniqueId getUniqueId(); @Override boolean equals(Object obj); @Override int hashCode(); @Override @ToString String toString(); static UnorderedCurrencyPair.Meta meta(); @Override UnorderedCurrencyPair.Meta metaBean(); @Override Property<R> property(String propertyName); @Override Set<String> propertyNames(); static final String OBJECT_SCHEME; }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_Currency_nullCurrency1() { UnorderedCurrencyPair.of((Currency) null, Currency.USD); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_Currency_nullCurrency2() { UnorderedCurrencyPair.of(Currency.USD, (Currency) null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_UniqueId_wrongScheme() { UnorderedCurrencyPair.of(UniqueId.of("Foo", "USDGBP")); }
@Test(expectedExceptions = IllegalArgumentException.class) public void test_of_UniqueId_wrongValue() { UnorderedCurrencyPair.of(UniqueId.of(UnorderedCurrencyPair.OBJECT_SCHEME, "USD")); }