@@ -0,0 +1,854 @@
+package com.scienceminer.nerd.disambiguation;%0A%0Aimport com.scienceminer.nerd.service.NerdRestProcessString;%0Aimport org.junit.Test;%0A%0Aimport java.util.Arrays;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Created by lfoppiano on 15/06/2017.%0A */%0Apublic class SentenceTest %7B%0A%0A    @Test%0A    public void testListToJSON() throws Exception %7B%0A%0A        Sentence sentence1 = new Sentence();%0A        sentence1.setOffsetStart(1);%0A        sentence1.setOffsetEnd(10);%0A%0A        Sentence sentence2 = new Sentence();%0A        sentence2.setOffsetStart(11);%0A        sentence2.setOffsetEnd(20);%0A%0A        String result = Sentence.listToJSON(Arrays.asList(sentence1, sentence2));%0A%0A        assertThat(result, is(%22%5C%22sentences%5C%22 : %5B %7B %5C%22offsetStart%5C%22 : 1, %5C%22offsetEnd%5C%22 : 10 %7D, %7B %5C%22offsetStart%5C%22 : 11, %5C%22offsetEnd%5C%22 : 20 %7D %5D%22));%0A    %7D%0A    %0A%7D

Sentence utility method test