public static <T extends EurekaEndpoint> List<T> randomize(List<T> list) {
        List<T> randomList = new ArrayList<>(list);
        if (randomList.size() < 2) {
            return randomList;
        }
        Collections.shuffle(randomList,ThreadLocalRandom.current());
        return randomList;
    }
@Test
    public void testRandomizeReturnsACopyOfTheMethodParameter() throws Exception {
        List<AwsEndpoint> firstList = SampleCluster.UsEast1a.builder().withServerPool(1).build();
        
        List<AwsEndpoint> secondList = ResolverUtils.randomize(firstList);
        
        assertThat(firstList, is(not(sameInstance(secondList))));
    }