@Test
public void testMintDOI() throws SQLException, AuthorizeException, IOException, IllegalAccessException, IdentifierException, WorkflowException
{

    Item item = newItem();
    String doi = null;
    try
    {
        // get a DOI:
        doi = provider.mint(context, item);
    }
    catch(IdentifierException e)
    {
        e.printStackTrace();
        fail("Got an IdentifierException: " + e.getMessage());
    }
    
    assertNotNull("Minted DOI is null!", doi);
    assertFalse("Minted DOI is empty!", doi.isEmpty());
    
    try
    {
        doiService.formatIdentifier(doi);
    }
    catch (Exception e)
    {
        e.printStackTrace();
        fail("Minted an unrecognizable DOI: " + e.getMessage());
    }
}