@Test public void testGetRate() throws Exception { Assume.assumeNotNull( RateService.getInstance() .getRate( Currency.getInstance(Locale.GERMANY).getCurrencyCode(), new GregorianCalendar(2010, 6, 1))); }
@Test public void testGetInstance() throws Exception { Assert.assertTrue( "instances if singleton are not same", RateService.getInstance() == RateService.getInstance()); }