public static Formatter forNumbers(@Nonnull String format) {
        return new NumberFormat(format);
    }
@Test
    public void testLiterals() {
        check(4.5,  "  $4.5",  " -$4.5",   "M$99.9",  "$99.9");
        check(4.5,  "$  4.5",  "$ -4.5",  "F$M99.9", "F$99.9");

        check(4.5,  " 4.5 USD ",  "-4.5 USD ",  "9.99 \"USD\"");
        check(4.5,  " 4.5  USD",  "-4.5  USD",  "9.99 F\"USD\"");

        check(45,  " 4.5",  "-4.5",  "9\".\"9", "9\\.9");
        check(45,  " 450",  "-450",  "99\"0\"", "99\\0");

        Formatter f = forNumbers("FM\"Integer: \"999 \"Fraction: \".999");
        check(48.59, f, "Integer: 48 Fraction: .59");

        f = forNumbers("FM\\\"999\"\\\" + \\\"\".999\\\"");
        check(48.59, f, "\"48\" + \".59\"");
    }