Source:
<code>public static void prepare() throws Exception { IntegrationTestInitService.getInstance().init(); systemUser = APILocator.systemUser(); workflowAPI = APILocator.getWorkflowAPI(); contentTypeAPI = APILocator.getContentTypeAPI(systemUser); contentletAPI = APILocator.getContentletAPI(); languageAPI = APILocator.getLanguageAPI(); <START> site = new SiteDataGen().name("site"+System.currentTimeMillis()).nextPersisted(); <END> final Role publisherRole = TestUserUtils.getOrCreatePublisherRole(site); publisher1 = TestUserUtils.getChrisPublisherUser(site); publisher2 = TestUserUtils .getUser(publisherRole, "daniel@dotcms.com", "Daniel", "dotCMS", "daniel"); contributor1 = TestUserUtils.getJoeContributorUser(site); final long sysTime = System.currentTimeMillis(); schemeStepActionResult = createSchemeStepActionActionlet ("itFourEyeApprovalScheme_" + sysTime, "step1", "action1", CheckinContentActionlet.class); addWhoCanUseToAction(schemeStepActionResult.getAction(), Collections.singletonList(publisherRole.getId())); addActionletToAction(schemeStepActionResult.getAction().getId(), FourEyeApproverActionlet.class, 1); addActionletToAction(schemeStepActionResult.getAction().getId(), PublishContentActionlet.class, 2); final List<WorkflowActionClass> actionletClasses = getActionletsFromAction( schemeStepActionResult.getAction()); WorkflowActionClass workflowActionClass = actionletClasses.get(1); addParameterValuesToActionlet(workflowActionClass, Arrays.asList("chris@dotcms.com,daniel@dotcms.com", "2", "'4 Eye' Approval Required", "Please review this content.")); createTestContentType(); workflowAPI.saveSchemesForStruct(new StructureTransformer(type).asStructure(), Collections.singletonList(schemeStepActionResult.getScheme())); }</code><technical_language>A unique name happen automatically call new SiteDataGen().nextPersisted(); If doesn't, this code moved there</technical_language>

Target:
public static void prepare() throws Exception { IntegrationTestInitService.getInstance().init(); systemUser = APILocator.systemUser(); workflowAPI = APILocator.getWorkflowAPI(); contentTypeAPI = APILocator.getContentTypeAPI(systemUser); contentletAPI = APILocator.getContentletAPI(); languageAPI = APILocator.getLanguageAPI(); site = new SiteDataGen().nextPersisted(); final Role publisherRole = TestUserUtils.getOrCreatePublisherRole(site); publisher1 = TestUserUtils.getChrisPublisherUser(site); publisher2 = TestUserUtils .getUser(publisherRole, "daniel@dotcms.com", "Daniel", "dotCMS", "daniel"); contributor1 = TestUserUtils.getJoeContributorUser(site); final long sysTime = System.currentTimeMillis(); schemeStepActionResult = createSchemeStepActionActionlet ("itFourEyeApprovalScheme_" + sysTime, "step1", "action1", CheckinContentActionlet.class); addWhoCanUseToAction(schemeStepActionResult.getAction(), Collections.singletonList(publisherRole.getId())); addActionletToAction(schemeStepActionResult.getAction().getId(), FourEyeApproverActionlet.class, 1); addActionletToAction(schemeStepActionResult.getAction().getId(), PublishContentActionlet.class, 2); final List<WorkflowActionClass> actionletClasses = getActionletsFromAction( schemeStepActionResult.getAction()); WorkflowActionClass workflowActionClass = actionletClasses.get(1); addParameterValuesToActionlet(workflowActionClass, Arrays.asList("chris@dotcms.com,daniel@dotcms.com", "2", "'4 Eye' Approval Required", "Please review this content.")); createTestContentType(); workflowAPI.saveSchemesForStruct(new StructureTransformer(type).asStructure(), Collections.singletonList(schemeStepActionResult.getScheme())); }