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

    Item item = newItem();
    String doi = this.createDOI(item, DOIIdentifierProvider.IS_REGISTERED, false);
    
    DSpaceObject dso = provider.getObjectByDOI(context, doi);
    
    assertNotNull("Failed to load DSpaceObject by DOI.", dso);
    if (item.getType() != dso.getType() || item.getID() != dso.getID())
    {
        fail("Object loaded by DOI was another object then expected!");
    }
}