public void Test_setCurrencyLjava_util_Currency() { CultureInfo locale = System.Globalization.CultureInfo.CANADA; NumberFormatInfo dfs_0 = ((DummyFormat)ILOG.J2CsMapping.Text.NumberFormat .GetCurrencyInstance(locale)).GetDecimalFormatSymbols(); try { dfs_0.SetCurrency(null); Junit.Framework.Assert.Fail("Expected NullPointerException"); } catch (NullReferenceException e) { } Currency currency = System.Collections.Currency.GetInstance("JPY"); dfs_0.SetCurrency(currency); Junit.Framework.Assert.AssertTrue("Returned incorrect currency", currency == dfs_0.GetCurrency()); Junit.Framework.Assert.AssertEquals("Returned incorrect currency symbol", currency .GetSymbol(locale), dfs_0.GetCurrencySymbol()); Junit.Framework.Assert.AssertTrue("Returned incorrect international currency symbol", currency .GetCurrencyCode().Equals(dfs_0.GetInternationalCurrencySymbol())); }