TransactionalDeviceLogItemService { public void deleteDeviceLogItems(final List<DeviceLogItem> deviceLogItems) { final int size = deviceLogItems.size(); this.deviceLogItemSlicingRepository.deleteAll(deviceLogItems); LOGGER.info("{} device log items deleted.", size); }  List<DeviceLogItem> findDeviceLogItemsBeforeDate(final Date date, final int pageSize); void deleteDeviceLogItems(final List<DeviceLogItem> deviceLogItems);  }
@Test public void serviceDeletesDeviceLogItem() { final List<DeviceLogItem> deviceLogItems = this.mockSliceOfDeviceLogItems(1).getContent(); try { this.transactionalDeviceLogItemService.deleteDeviceLogItems(deviceLogItems); } catch (final Exception e) { fail("Unexpected exception! " + e.getMessage()); } }