@@ -0,0 +1,1550 @@
+package org.datacite.mds.util;%0A%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0Apublic class UtilsTest %7B%0A    @Test%0A    public void testGetDoiPrefix() %7B%0A        assertTrue(Utils.getDoiPrefix(%2210.5072/suffix%22).equals(%2210.5072%22));%0A        assertTrue(Utils.getDoiPrefix(%22/emptyprefix%22).equals(%22%22));%0A        assertNull(Utils.getDoiPrefix(%22noprefix%22));%0A        assertNull(Utils.getDoiPrefix(%22%22));%0A        assertNull(Utils.getDoiPrefix(null));%0A    %7D%0A%0A    @Test%0A    public void testGetDoiSuffix() %7B%0A        assertTrue(Utils.getDoiSuffix(%2210.5072/suffix%22).equals(%22suffix%22));%0A        assertTrue(Utils.getDoiSuffix(%22emptysuffix/%22).equals(%22%22));%0A        assertNull(Utils.getDoiSuffix(%22nosuffix%22));%0A        assertNull(Utils.getDoiSuffix(%22%22));%0A        assertNull(Utils.getDoiSuffix(null));%0A    %7D%0A    %0A    @Test%0A    public void testCsvToList() %7B%0A        String csv=%22ab,,cde,f,%22;%0A        List%3CString%3E list = Utils.csvToList(csv);%0A        assertEquals(5,list.size());%0A        assertTrue(list.get(0).equals(%22ab%22));%0A        assertTrue(list.get(1).equals(%22%22));%0A        assertTrue(list.get(2).equals(%22cde%22));%0A        assertTrue(list.get(3).equals(%22f%22));%0A        assertTrue(list.get(4).equals(%22%22));%0A        %0A        assertEquals(1,Utils.csvToList(%22%22).size());%0A        assertEquals(0,Utils.csvToList(%22%22).get(0).length());%0A        assertEquals(0,Utils.csvToList(null).size());%0A    %7D%0A    %0A    @Test%0A    public void getHostname() %7B%0A        assertTrue(Utils.getHostname(%22ftp://user@sub.domain.tld:8080/path%22).equals(%22sub.domain.tld%22));%0A    %7D%0A%7D%0A

add tests for Utils (closes #MDS-82)