@Test
public void readAltIdsArrayTest() throws IOException {

    when(parser.readAltIdsArray(reader)).thenCallRealMethod();
    when(reader.hasNext()).thenReturn(true, true, true, true, false, true, false, false);
    when(reader.nextName()).thenReturn("place_id", "scope", "skip");
    when(reader.nextString()).thenReturn("id");
    when(parser.readScope(reader)).thenReturn(PlaceScope.GOOGLE);
    List<AlternativePlaceId> expected = Arrays.asList(new AlternativePlaceId("id", PlaceScope.GOOGLE), new AlternativePlaceId(null, null));
    List<AlternativePlaceId> actual = parser.readAltIdsArray(reader);
    assertEquals(expected, actual);
}