### Question:
Format { public static String format(double d) { return "" + (d); }  static String formatPercentage(double pct); static String formatPercentage(Number pct); static String format(double d); static String format(Double d); static String formatTextBoxDate(Date date); static String format(Date date); static String format(Date date, FORMAT_TYPE type); static String format(Date date, Locale locale, FORMAT_TYPE type); static String format(Throwable t);  }### Answer:
@Test public void format_shouldNotFailWhenAllParametersAreNull() { Assert.assertEquals("",Format.format(null, null, null)); }
@Test public void format_shouldNotFailWhenDateAndLocaleIsNull() { Assert.assertEquals("", Format.format(null, null, Format.FORMAT_TYPE.DATE)); }
@Test public void format_shouldNotFailWhenLocaleAndTypeIsNull() { Assert.assertEquals("", Format.format(new Date(1460323142), null, null)); }
@Test public void format_shouldNotFailWhenOnlyLocaleIsNull() { Assert.assertEquals("", Format.format(new Date(1460323142), null, Format.FORMAT_TYPE.DATE)); }
@Test public void format_shouldNotFailWhenDateAndTypeIsNull() { Assert.assertEquals("", Format.format(null, Locale.US, null)); }
@Test public void format_shouldNotFailWhenOnlyDateIsNull() { Assert.assertEquals("", Format.format(null, Locale.US, Format.FORMAT_TYPE.DATE)); }
@Test public void format_shouldNotFailWhenOnlyTypeIsNull() { Assert.assertEquals("", Format.format(new Date(1460323539000L), Locale.US, null)); }
@Test public void format_shouldNotFailWhenNoneOfTheParametersAreNull() { Assert.assertNotEquals("", Format.format(new Date(1460323539000L), Locale.US, Format.FORMAT_TYPE.DATE)); }