### Question:
WorkflowHelperImpl implements WorkflowHelper { @Override public List<String> getValuesFromArgs(String name, String[] args) { final String prefix = name + ":"; final int prefixLength = prefix.length(); final List<String> values = new ArrayList<String>(); for (String arg : args) { if (arg.startsWith(prefix)) { final String value = arg.substring(prefixLength).trim(); values.add(value); } } return Collections.unmodifiableList(values); }  @Override final ResourceResolver getResourceResolver(com.adobe.granite.workflow.WorkflowSession workflowSession); @Override final ResourceResolver getResourceResolver(WorkflowSession workflowSession); @Override AssetResourceResolverPair getAssetFromPayload(WorkItem item, WorkflowSession workflowSession); @Override String getExtension(String mimetype); @Override String[] buildArguments(MetaDataMap metaData); @Override List<String> getValuesFromArgs(String name, String[] args); @Override double getQuality(double base, String qualityStr); @Override final Resource getPageOrAssetResource(ResourceResolver resourceResolver, String path); @Override boolean isPathTypedPayload(WorkflowData workflowData); @Override boolean isPathTypedPayload(com.adobe.granite.workflow.exec.WorkflowData workflowData);  }### Answer:
@Test public void getValuesFromArgsSingleArgument() throws Exception { List<String> values = workflowHelper.getValuesFromArgs("foo", new String[] { "foo:bar", "goo:baz "}); assertNotNull(values); assertEquals(1, values.size()); assertEquals("bar", values.get(0)); }
@Test public void getValuesFromArgsMultipleArgument() throws Exception { List<String> values = workflowHelper.getValuesFromArgs("foo", new String[] { "foo:bar", "foo:bar2", "goo:baz "}); assertNotNull(values); assertEquals(2, values.size()); assertEquals("bar", values.get(0)); assertEquals("bar2", values.get(1)); }