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 testRandomizeProperlyRandomizesList() throws Exception {
        boolean success = false;
        for (int i = 0; i < 100; i++) {
            List<AwsEndpoint> firstList = SampleCluster.UsEast1a.builder().withServerPool(100).build();
        
            List<AwsEndpoint> secondList = ResolverUtils.randomize(firstList);
        
            try {
                assertThat(firstList, is(not(equalTo(secondList))));
                success = true;
                break;
            }catch(AssertionError e) {
            }
        }
        
        if(!success) {
            throw new AssertionError("ResolverUtils::randomize returned the same list 100 times, this is more than likely a bug.");
        }
    }