private static Entry<Map<TopicPartition, PartitionReassignmentState>, Boolean> verifyPartitionAssignments(Admin adminClient,
                                                                                                               List<Entry<TopicPartition, List<Integer>>> targets
    ) throws ExecutionException, InterruptedException {
        Entry<Map<TopicPartition, PartitionReassignmentState>, Boolean> t0 = findPartitionReassignmentStates(adminClient, targets);
        System.out.println(partitionReassignmentStatesToString(t0.getKey()));
        return t0;
    }
Verify the partition reassignments specified by the user.

@param adminClient           The AdminClient to use.
@param targets               The partition reassignments specified by the user.

@return                      A tuple of the partition reassignment states, and a
                             boolean which is true if there are no ongoing
                             reassignments (including reassignments not described
                             in the JSON file.)
tools/src/main/java/org/apache/kafka/tools/reassign/ReassignPartitionsCommand.java