CollectorFormatter extends Formatter { @Override public String getTail(final Handler h) { return formatRecord(h, true); } CollectorFormatter();  CollectorFormatter(String format);  CollectorFormatter(String format, Formatter f,
            Comparator<? super LogRecord> c); @Override String format(final LogRecord record); @Override String getTail(final Handler h); @Override String toString();  }
@Test public void testGetTail() { CollectorFormatter f = new CollectorFormatter( "{0}{1}{2}{3}{4}{5}{6}{7}{8}", (Formatter) null, (Comparator<LogRecord>) null); assertTrue(f.getTail((Handler) null).length() != 0); assertTrue(f.getTail((Handler) null).length() != 0); }