package uk.ac.ebi.atlas.bioentity.interpro;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.inject.Inject;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"/applicationContext.xml", "/solrContext.xml", "/embeddedSolrServerContext.xml", "/oracleContext.xml"})
public class InterProTraderIT {

    private static final String IPR000001 = "IPR000001";
    private static final String KRINGLE_DOMAIN = "Kringle (domain)";
    private static final String IPR029787 = "IPR029787";
    private static final String NUCLEOTIDE_CYCLASE_DOMAIN = "Nucleotide cyclase (domain)";

    @Inject
    InterProTrader subject;

    @Test
    public void hasFirstTerm() {
        assertThat(subject.getTermName(IPR000001), is(KRINGLE_DOMAIN));
    }

    @Test
    public void hasLastTerm() {
        assertThat(subject.getTermName(IPR029787), is(NUCLEOTIDE_CYCLASE_DOMAIN));
    }

}
@@ -311,16 +311,63 @@
 rtThat;%0A
+import static org.hamcrest.Matchers.nullValue;%0A
 import s
@@ -1168,9 +1168,139 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void unknownTermsReturnNull() %7B%0A        assertThat(subject.getTermName(%22IPRFOOBAR%22), is(nullValue()));%0A    %7D%0A
 %7D

Add another test case to increase coverage