BloombergPriceConverter { public static double nativeToBloomberg( double nativePrice, Commodity commodity ) { return nativePrice * getMultiplier(commodity); }  static double nativeToBloomberg( double nativePrice, Commodity commodity ); static double bloombergToNative( double bloombergPrice, Commodity commodity ); static double getMultiplier( Commodity commodity );  }
@Test public void testNativeToBloomberg() { assertEquals(109.000, BloombergPriceConverter.nativeToBloomberg(1.0900, SWISS_FRANC_GLOBEX),0.00001); }
@Test public void testNativeToBloomberg6J() { assertEquals(85.00, BloombergPriceConverter.nativeToBloomberg(0.0085, JAPANESE_YEN_GLOBEX ), 0.0 ); }