@Test
public void readTypesArrayTest() throws IOException {

    when(parser.readTypesArray(reader)).thenCallRealMethod();
    when(reader.hasNext()).thenReturn(true, true, true, false);
    when(reader.nextString()).thenReturn("one", "two", "three");
    List<String> expected = Arrays.asList("one", "two", "three");
    List<String> actual = parser.readTypesArray(reader);
    assertEquals(expected, actual);
}