@Test
public void readDescriptionTermsArrayTest() throws IOException {

    when(parser.readDescriptionTermsArray(reader)).thenCallRealMethod();
    when(reader.hasNext()).thenReturn(true, true, true, true, false, true, false, false);
    when(reader.nextName()).thenReturn("offset", "value", "skip");
    when(reader.nextInt()).thenReturn(1);
    when(reader.nextString()).thenReturn("one");
    List<DescriptionTerm> expected = Arrays.asList(new DescriptionTerm(1, "one"), new DescriptionTerm(-1, null));
    List<DescriptionTerm> actual = parser.readDescriptionTermsArray(reader);
    assertEquals(expected, actual);
}