### Question:
FormServiceProviderImpl implements FormServiceProvider { protected String extractProcessDefinitionUUID(final String formId) { final StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("\\"); stringBuilder.append(FormServiceProviderUtil.FORM_ID_SEPARATOR); final String processDefinitionUUID; final String formUUID = formId.split(stringBuilder.toString())[0]; final String[] splitedFormUUID = formUUID.split(FormWorkflowAPIImpl.UUID_SEPARATOR); final StringBuilder stringBuilder2 = new StringBuilder(); stringBuilder2.append(splitedFormUUID[0]); stringBuilder2.append(FormWorkflowAPIImpl.UUID_SEPARATOR); stringBuilder2.append(splitedFormUUID[1]); processDefinitionUUID = stringBuilder2.toString(); return processDefinitionUUID; } FormServiceProviderImpl(); @Override Document getFormDefinitionDocument(final Map<String, Object> context); @Override boolean isAllowed(final String formId, final String permissions, final String productVersion, final String migrationProductVersion,
            final Map<String, Object> context, final boolean isFormPermissions); @Override @SuppressWarnings("unchecked") Serializable resolveExpression(final Expression expression, final Map<String, Object> context); @Override @SuppressWarnings("unchecked") Map<String, Serializable> resolveExpressions(final List<Expression> expressions, final Map<String, Object> context); @Override @SuppressWarnings("unchecked") Map<String, Object> executeActions(final List<FormAction> actions, final Map<String, Object> context); @Override FormURLComponents getNextFormURLParameters(final String formId, final Map<String, Object> context); @Override Map<String, String> getAttributesToInsert(final Map<String, Object> context); @Override @SuppressWarnings("unchecked") List<FormValidator> validateField(final List<FormValidator> validators, final String fieldId, final FormFieldValue fieldValue,
            final String submitButtonId, final Map<String, Object> context); @Override @SuppressWarnings("unchecked") List<FormValidator> validatePage(final List<FormValidator> validators, final Map<String, FormFieldValue> fields, final String submitButtonId,
            final Map<String, Object> context); @Override Date getDeployementDate(final Map<String, Object> context); @Override IApplicationConfigDefAccessor getApplicationConfigDefinition(final Document formDefinitionDocument, final Map<String, Object> context); @Override IApplicationFormDefAccessor getApplicationFormDefinition(final String formId, final Document formDefinitionDocument,
            final Map<String, Object> context); @Override File getApplicationResourceDir(final Date applicationDeploymentDate, final Map<String, Object> context); @Override FormFieldValue getAttachmentFormFieldValue(final Object value, final Map<String, Object> context); @Override boolean isEditMode(final String formID, final Map<String, Object> context); @Override boolean isCurrentValue(final Map<String, Object> context); @Override Map<String, Object> skipForm(final String formID, final Map<String, Object> context); @Override FormURLComponents getAnyTodoListForm(final Map<String, Object> context); @Override void assignForm(final String formID, final Map<String, Object> context); @Override ClassLoader getClassloader(final Map<String, Object> context); @Override void storeFormTransientDataContext(final HttpSession session, final String storageKey, final Map<String, Serializable> transientDataContext,
            final Map<String, Object> context); @Override Map<String, Serializable> retrieveFormTransientDataContext(final HttpSession session, final String storageKey, final Map<String, Object> context); @Override void removeFormTransientDataContext(final HttpSession session, final String storageKey, final Map<String, Object> context); static final String EXECUTE_ACTIONS_PARAM; }### Answer:
@Test public void testextractProcessDefinitionUUID() throws Exception { final String formId = "processName--1.0$entry"; final String extractProcessDefinitionUUID = formServiceProviderImpl.extractProcessDefinitionUUID(formId); assertThat(extractProcessDefinitionUUID).isEqualTo("processName--1.0"); }
@Test public void testextractProcessDefinitionUUID_with_step_name() throws Exception { final String formId = "processName--1.0--Step1$entry"; final String extractProcessDefinitionUUID = formServiceProviderImpl.extractProcessDefinitionUUID(formId); assertThat(extractProcessDefinitionUUID).isEqualTo("processName--1.0"); }