RomanNumbering { public static String toRoman(int number, boolean upperCase) { return upperCase ? toRomanUpperCase(number) : toRomanLowerCase(number); }  static String toRomanLowerCase(int number); static String toRomanUpperCase(int number); static String toRoman(int number, boolean upperCase);  }
@Test public void toRomanTest() { String expected = "dcclvi"; Assert.assertEquals(expected.toUpperCase(), RomanNumbering.toRoman(756, true)); Assert.assertEquals(expected.toLowerCase(), RomanNumbering.toRoman(756, false)); }