SpringBatchAndBatchRepositoryCleaner implements EmployeeGeneratorCleaner { @Override public void deleteAll() { deleteEverythingFromRepositories(); removeJobExecutions(); }  @Override void deleteAll();  }
@Test public void testDeleteAll() throws Exception { when(entityManager.createNativeQuery(anyString())).thenReturn(query); cleaner.deleteAll(); verify(payCheckRepository).deleteAll(); verify(taxWebserviceCallResultRepository).deleteAll(); verify(taxCalculationRepository).deleteAll(); verify(entityManager, times(6)).createNativeQuery(anyString()); verify(query, times(6)).executeUpdate(); }