public static boolean contains(int[] replicas, int value) {
        for (int replica : replicas) {
            if (replica == value) return true;
        }
        return false;
    }
@Test
    public void testContains2() {
        assertTrue(Replicas.contains(Collections.emptyList(), Replicas.NONE));
        assertFalse(Replicas.contains(Collections.emptyList(), new int[] {1}));
        assertTrue(Replicas.contains(Arrays.asList(1, 2, 3), new int[] {3, 2, 1}));
        assertTrue(Replicas.contains(Arrays.asList(1, 2, 3, 4), new int[] {3}));
        assertTrue(Replicas.contains(Arrays.asList(1, 2, 3, 4), new int[] {3, 1}));
        assertFalse(Replicas.contains(Arrays.asList(1, 2, 3, 4), new int[] {3, 1, 7}));
        assertTrue(Replicas.contains(Arrays.asList(1, 2, 3, 4), new int[] {}));
    }