Utils { public static String format(double d) { return String.format("%2.4f", d); }  static String format(double d); static void msg(String alg, String s1, String s2, String parameter, double sim); static void msg(String msg); static void msg(String msg, boolean exceptional); static String[] split(String uri); static boolean empty(String s);  }
@Test public void format1() { assertEquals( "3.1416", Utils.format(Math.PI)); assertEquals( "314.1593", Utils.format(Math.PI* 100)); }