### Question:
DefaultFormatter implements Formatter { @Override public void initialize(Iterable<Entry<Key,Value>> scanner, FormatterConfig config) { checkState(false); si = scanner.iterator(); this.config = new FormatterConfig(config); }  @Override void initialize(Iterable<Entry<Key,Value>> scanner, FormatterConfig config); @Override boolean hasNext(); @Override String next(); @Override void remove(); static String formatEntry(Entry<Key,Value> entry, boolean showTimestamps); static String formatEntry(Entry<Key,Value> entry, DateFormat timestampFormat); String formatEntry(Entry<Key,Value> entry); static String formatEntry(Entry<Key,Value> entry, FormatterConfig config); static StringBuilder appendText(StringBuilder sb, Text t, int shownLength); Iterator<Entry<Key,Value>> getScannerIterator();  }### Answer:
@Test(expected = IllegalStateException.class) public void testDoubleInitialize() { final FormatterConfig timestampConfig = new FormatterConfig().setPrintTimestamps(true); df.initialize(empty, timestampConfig); df.initialize(empty, timestampConfig); }