UUID getRandomIdFromList(ArrayList<Member> memberList) {
        if (memberList.isEmpty()) {
            throw new JetException("Cluster member list is empty");
        }
        Collections.shuffle(memberList);
        Member member = memberList.get(0);
        return member.getUuid();
    }
@Test
    public void testGetRandomIdFromList() throws UnknownHostException {
        UUID uuid = UUID.randomUUID();
        MemberImpl member = new MemberImpl(
                new Address("hostname", InetAddress.getByName("192.168.8.112"), 0),
                new MemberVersion(0, 0, 0),
                true,
                uuid);

        ArrayList<Member> memberList = new ArrayList<>();
        memberList.add(member);

        SubmitJobTargetMemberFinder submitJobTargetMemberFinder = new SubmitJobTargetMemberFinder();
        UUID result = submitJobTargetMemberFinder.getRandomIdFromList(memberList);
        Assert.assertEquals(uuid, result);
    }