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