@@ -0,0 +1,1365 @@
+package org.obolibrary.robot;%0A%0Aimport java.io.IOException;%0Aimport org.junit.Test;%0Aimport org.obolibrary.robot.providers.CURIEShortFormProvider;%0Aimport org.semanticweb.owlapi.apibinding.OWLManager;%0Aimport org.semanticweb.owlapi.model.IRI;%0Aimport org.semanticweb.owlapi.model.OWLClass;%0Aimport org.semanticweb.owlapi.model.OWLDataFactory;%0A%0Apublic class CURIEShortFormProviderTest extends CoreTest %7B%0A%0A  @Test%0A  public void testProvider() throws IOException %7B%0A    IOHelper ioHelper = new IOHelper();%0A    CURIEShortFormProvider sfp = new CURIEShortFormProvider(ioHelper.getPrefixes());%0A    OWLDataFactory df = OWLManager.getOWLDataFactory();%0A%0A    // Short form 1 should return GO (longer than OBO namespace)%0A    OWLClass c1 = df.getOWLClass(IRI.create(%22http://purl.obolibrary.org/obo/GO_123%22));%0A    String sf1 = sfp.getShortForm(c1);%0A    assert sf1.equals(%22GO:123%22);%0A%0A    // Short form 2 will default to base OBO since UNKNOWN is not registered%0A    OWLClass c2 = df.getOWLClass(IRI.create(%22http://purl.obolibrary.org/obo/UNKNOWN_123%22));%0A    String sf2 = sfp.getShortForm(c2);%0A    assert sf2.equals(%22obo:UNKNOWN_123%22);%0A%0A    // The example NS is not in prefixes so full IRI will be returned%0A    OWLClass c3 = df.getOWLClass(IRI.create(%22http://example.com/UNKNOWN_456%22));%0A    String sf3 = sfp.getShortForm(c3);%0A    assert sf3.equals(%22http://example.com/UNKNOWN_456%22);%0A  %7D%0A%7D%0A

Add test for CURIE short form provider