LogSkippedItemListener implements SkipListener<Object, BatchExcelRow>, ItemProcessListener<Object, Object> { @Override public void onSkipInRead(Throwable t) { READ.debug(t.getMessage(), (ExcelRow) null); }  @Override void onSkipInRead(Throwable t); @Override void onSkipInWrite(BatchExcelRow item, Throwable t); @Override void onSkipInProcess(Object item, Throwable t); @Override void beforeProcess(Object item); @Override void afterProcess(Object item, Object result); @Override void onProcessError(Object item, Exception e);  }
@Test public void testOnSkipInRead() throws Exception { listener.onSkipInRead(new Exception("foo")); Assert.assertTrue(appender.getEvents() .stream() .anyMatch(logEvent -> logEvent .getMessage() .getFormattedMessage() .contains("foo") )); }