@Test
public void readPhotosArrayTest() throws IOException {

    when(parser.readPhotosArray(reader)).thenCallRealMethod();
    when(reader.hasNext()).thenReturn(true, true, true, true, true, false, true, false, false);
    when((reader.nextName())).thenReturn("height", "width", "photo_reference", "skip");
    when(reader.nextInt()).thenReturn(1, 2);
    when(reader.nextString()).thenReturn("photo");
    List<PlacePhoto> expected = Arrays.asList(new PlacePhoto(1, 2, "photo"), new PlacePhoto(-1, -1, null));
    List<PlacePhoto> actual = parser.readPhotosArray(reader);
    assertEquals(expected, actual);
}