@Test
public void readPlaceTypesArrayTest() throws IOException {

    when(parser.readPlaceTypesArray(reader)).thenCallRealMethod();
    when(reader.hasNext()).thenReturn(true, true, true, false);
    when(reader.nextString()).thenReturn("route", "geocode", "skip");
    List<PlaceType> expected = Arrays.asList(PlaceType.ROUTE, PlaceType.GEOCODE);
    List<PlaceType> actual = parser.readPlaceTypesArray(reader);
    assertEquals(expected, actual);
}