public static <T extends EurekaEndpoint> boolean identical(List<T> firstList, List<T> secondList) {
        if (firstList.size() != secondList.size()) {
            return false;
        }
        HashSet<T> compareSet = new HashSet<>(firstList);
        compareSet.removeAll(secondList);
        return compareSet.isEmpty();
    }
@Test
    public void testIdentical() throws Exception {
        List<AwsEndpoint> firstList = SampleCluster.UsEast1a.builder().withServerPool(10).build();
        List<AwsEndpoint> secondList = ResolverUtils.randomize(firstList);

        assertThat(ResolverUtils.identical(firstList, secondList), is(true));

        secondList.set(0, SampleCluster.UsEast1b.build().get(0));
        assertThat(ResolverUtils.identical(firstList, secondList), is(false));
    }