SystemDuplicateBulkAction extends AbstractBulkAction<SysSystemDto, SysSystemFilter> { @Override public String getName() { return NAME; }  @Override String getName(); @Override int getOrder(); @Override ReadWriteDtoService<SysSystemDto, SysSystemFilter> getService(); static final String NAME; }
@Test public void processBulkActionByIds() { SysSystemDto system = helper.createSystem(getHelper().createName()); IdmBulkActionDto bulkAction = this.findBulkAction(SysSystem.class, SystemDuplicateBulkAction.NAME); bulkAction.setIdentifiers(ImmutableSet.of(system.getId())); String name = MessageFormat.format("{0}{1}", "Copy-of-", system.getName()); assertNull(systemService.getByCode(name)); IdmBulkActionDto processAction = bulkActionManager.processAction(bulkAction); checkResultLrt(processAction, 1l, null, null); assertNotNull(systemService.getByCode(name)); }