source: class ObjectFormatterTest  {
  
      protected ObjectFormatter formatter;
  
      @Test
      public void testToStringHex() throws Exception {
  
target:         ObjectReference or = this.getObjectReference("Foo");
          Map<String, Object> options = formatter.getDefaultOptions();
          options.put(NUMERIC_FORMAT_OPTION, NumericFormatEnum.HEX);
          assertEquals("Failed to format an object.", String.format("MockType@%#x", or.uniqueID()),
              formatter.toString(or, options));
      }
  
  }