@Test(expected = UnsupportedOperationException.class)
public void testToStringNotSupported() {

    ObjectReference or = this.getObjectReference("Foo");
    formatter.toString(or, new HashMap<>());
    fail("format object should not be supported by numeric formatter.");
}