RomanNumberFormat extends Format { public String format(double n) { return format((long)n); }  String format(double n); String format(long n); @Override StringBuffer format(Object on, StringBuffer sb, FieldPosition fp); @Override Object parseObject(String what, ParsePosition where);  }
@Test(expected=NumberFormatException.class) public final void testManyFormatLong() { nf.format(0); fail("Romans did not use Zero"); }
@Test(expected=NumberFormatException.class) public void testTooBig() { nf.format(4000); }