BatchExcelRowToSimpleMailMessageProcessor implements ItemProcessor<BatchExcelRow, SimpleMailMessage> { @Override public SimpleMailMessage process(BatchExcelRow item) throws Exception { SimpleMailMessage result = new SimpleMailMessage(); result.setFrom(from); result.setReplyTo(from); result.setSubject(subject); result.setSentDate(new Date()); result.setTo(to); result.setText(item.toString()); return result; }  @Override SimpleMailMessage process(BatchExcelRow item); void setFrom(String from); void setSubject(String subject); void setTo(String to);  }
@Test public void testProcess() throws Exception { Assert.assertNotNull(processor.process(new BatchExcelRow .Builder(LocalDate.now(), Sens.ARRIVAL) .build(false)) ); }