### Question:
SysErrLogger { public void syserr(final Object message) { System.err.println("ERROR " + message); } private  SysErrLogger(); void ignoreLog(final Throwable throwable); void sysout(); void sysout(final Object message); void sysoutFormat(final String format, final Object... args); void syserrNoLn(final Object message); void syserr(final Object message); void syserr(); void syserr(final String message, final Throwable e); void syserr(final Throwable e); static final SysErrLogger FAKE_LOGGER; }### Answer:
@Test public void testSyserr() { buf.setLength(0); SysErrLogger.FAKE_LOGGER.ignoreLog(new Exception("Fake exception")); assertEquals(0, buf.length()); SysErrLogger.FAKE_LOGGER.syserr(NOT_EMPTY); assertTrue(buf.length() > 0); buf.setLength(0); SysErrLogger.FAKE_LOGGER.syserr(); assertTrue(buf.length() > 0); buf.setLength(0); SysErrLogger.FAKE_LOGGER.syserr(NOT_EMPTY, new Exception("Fake exception")); assertTrue(buf.length() > NOT_EMPTY.length() + 5); buf.setLength(0); }