### Question:
NIFHelper { public static final IRI getNifOffsetURI(IRI base, int start, int end){ if(base == null){ throw new IllegalArgumentException("Base URI MUST NOT be NULL!"); } StringBuilder sb = new StringBuilder(base.getUnicodeString()); sb.append("#offset_"); sb.append(start >= 0 ? start : 0).append('_'); if(end >= 0){ if(end < start){ throw new IllegalArgumentException("End index '"+end+"' < start '"+start+"'!"); } sb.append(end); } return new IRI(sb.toString()); } private  NIFHelper(); static final IRI getNifFragmentURI(IRI base, int start,int end); static final IRI getNifOffsetURI(IRI base, int start, int end); static final IRI getNifHashURI(IRI base, int start, int end, String text); static IRI writeSpan(Graph graph, IRI base, AnalysedText text, Language language, Span span); static void writePos(Graph graph, Annotated annotated, IRI segmentUri); static void writePhrase(Graph graph, Annotated annotated, IRI segmentUri); static final Map<SpanTypeEnum,IRI> SPAN_TYPE_TO_SSO_TYPE; static final Map<LexicalCategory,IRI> LEXICAL_TYPE_TO_PHRASE_TYPE; static final int NIF_HASH_CONTEXT_LENGTH; static final int NIF_HASH_MAX_STRING_LENGTH; static final Charset UTF8; }### Answer:
@Test public void testOffsetURI(){ Assert.assertEquals( base.getUnicodeString()+"#offset_23_26", NIFHelper.getNifOffsetURI(base, 23, 26).getUnicodeString()); }