@SuppressWarnings("deprecation")
@Test
public void testFormat() {

   Assert.assertEquals("12345", FormatFunction.format(12345, "0.#"));
   Assert.assertEquals("12345.0", FormatFunction.format(12345, "0.0"));
   Assert.assertEquals("12,345.0", FormatFunction.format(12345, "#,##0.0"));
   Assert.assertEquals(String.valueOf(new Date().getYear() + 1900), FormatFunction.format(new Date(), "yyyy"));
}