### Question:
LocationExtractorUtils { public static boolean differentNames(Collection<Location> locations) { Set<String> allNames = new HashSet<>(); for (Location location : locations) { Set<String> currentNames = location.collectAlternativeNames(); if (allNames.size() > 0) { Set<String> tempIntersection = new HashSet<>(allNames); tempIntersection.retainAll(currentNames); if (tempIntersection.isEmpty()) { return true; } } allNames.addAll(currentNames); } return false; } private  LocationExtractorUtils(); static String normalizeName(String value); static boolean differentNames(Collection<Location> locations); static boolean sameNames(Collection<Location> locations); static Comparator<Location> distanceComparator(final GeoCoordinate coordinate); static final Function<LocationAnnotation, Location> ANNOTATION_LOCATION_FUNCTION; static final Function<Location, GeoCoordinate> LOCATION_COORDINATE_FUNCTION; }### Answer:
@Test public void testDifferentNames() { assertTrue(LocationExtractorUtils.differentNames(Arrays.asList(l4, l5, l6))); assertFalse(LocationExtractorUtils.differentNames(Arrays.asList(l5, l6))); }