ConverterUtil { public static float convertCelsiusToFahrenheit(float celsius) { return ((celsius * 9) / 5) + 32; }  static float convertFahrenheitToCelsius(float fahrenheit); static float convertCelsiusToFahrenheit(float celsius);  }
@Test public void testConvertCelsiusToFahrenheit() { float actual = ConverterUtil.convertFahrenheitToCelsius(212); float expected = 100; assertEquals("Conversion from celsius to fahrenheit failed", expected, actual, 0.001); }
@Test public void testConvertFahrenheitToCelsiusHamcrest() { float actual = ConverterUtil.convertCelsiusToFahrenheit(100); float expected = 212; assertThat("Conversion from celsius to fahrenheit failed", expected, is(actual)); }