### Question:
FormatterFactory { public static Formatter getDefaultFormatter(Iterable<Entry<Key,Value>> scanner, FormatterConfig config) { return getFormatter(DefaultFormatter.class, scanner, config); } private  FormatterFactory(); static Formatter getFormatter(Class<? extends Formatter> formatterClass,
      Iterable<Entry<Key,Value>> scanner, FormatterConfig config); static Formatter getDefaultFormatter(Iterable<Entry<Key,Value>> scanner,
      FormatterConfig config);  }### Answer:
@Test public void testGetDefaultFormatter() { final FormatterConfig timestampConfig = new FormatterConfig().setPrintTimestamps(true); Formatter defaultFormatter = FormatterFactory.getDefaultFormatter(scanner, timestampConfig); Formatter bogusFormatter = FormatterFactory.getFormatter(Formatter.class, scanner, timestampConfig); assertEquals(defaultFormatter.getClass(), bogusFormatter.getClass()); }