ZenodoHelper { protected static String extractDoiFromDoiUrl(String doiUrl) { String doi = doiUrl; try { URI uri = new URI(doiUrl); doi = StringUtils.stripStart(uri.getPath(), "/"); } catch (URISyntaxException e) { LOG.error("Could not extract DOI. Error is " + e.getMessage(), e); } return doi; } private  ZenodoHelper(); static ZenodoDoiResult registerZenodoDOI(ApiClient zenodoClient, Workflow workflow,
            WorkflowVersion workflowVersion, String workflowUrl, String dockstoreGA4GHBaseUrl,
            String dockstoreUrl, EntryVersionHelper entryVersionHelper);  }
@Test public void extractDoiFromDoiUrl() { String doiUrl = "https: String doi = ZenodoHelper.extractDoiFromDoiUrl(doiUrl); Assert.assertEquals("10.5072/zenodo.372767", doi); }
@Test public void extractDoiFromBadDoiUrl() { String doiUrl = "https: String doi = ZenodoHelper.extractDoiFromDoiUrl(doiUrl); Assert.assertNotEquals("10.5072/zenodo.372767", doi); }