@Test
public void readPredictionsArrayTest() throws IOException {

    when(parser.readPredictionsArray(reader)).thenCallRealMethod();
    when(reader.hasNext()).thenReturn(true, false);
    Place place = new Place("desc", "id", Collections.singletonList(new MatchedSubstring(1, 2)), Collections.singletonList(new DescriptionTerm(3, "three")), Collections.singletonList(PlaceType.GEOCODE));
    when(parser.readPlace(reader)).thenReturn(place);
    List<Place> expected = Collections.singletonList(place);
    List<Place> actual = parser.readPredictionsArray(reader);
    assertEquals(expected, actual);
}