### Question:
HexFormatter implements Formatter, ScanInterpreter { @Override public void initialize(Iterable<Entry<Key,Value>> scanner, FormatterConfig config) { this.iter = scanner.iterator(); this.config = new FormatterConfig(config); }  @Override boolean hasNext(); @Override String next(); @Override void remove(); @Override void initialize(Iterable<Entry<Key,Value>> scanner, FormatterConfig config); @Override Text interpretRow(Text row); @Override Text interpretBeginRow(Text row); @Override Text interpretEndRow(Text row); @Override Text interpretColumnFamily(Text cf); @Override Text interpretColumnQualifier(Text cq);  }### Answer:
@Test public void testInitialize() { data.put(new Key(), new Value()); formatter.initialize(data.entrySet(), new FormatterConfig()); assertTrue(formatter.hasNext()); assertEquals(" " + " " + " [" + "] ", formatter.next()); }