### Question:
DefaultFormatter implements Formatter { @Override public boolean hasNext() { checkState(true); return si.hasNext(); }  @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 testNextBeforeInitialize() { df.hasNext(); }