### Question:
ScheduleUtil { public static boolean isLeader(String serverUuid, List<String> serverUuidList) { return serverUuid.equals(getLeader(serverUuidList)); }  static String getLocalHostName(); static String getLocalIP(); static String dataToString(Date d); static String runningEntryFromTaskName(String taskName, String ownSign); static String taskNameFromRunningEntry(String runningEntry); static String ownsignFromRunningEntry(String runningEntry); static int[] generateSequence(int nodeCount, int jobCount, int nodeCapacity); static String getLeader(Collection<String> serverUuidList); static boolean isLeader(String serverUuid, List<String> serverUuidList);  }### Answer:
@Test public void isLeader() { List<String> serverList = new ArrayList<>(); serverList.add("$000005"); serverList.add("$000003"); serverList.add("$000001"); serverList.add("$000002"); assertFalse(ScheduleUtil.isLeader("asdf", serverList)); assertFalse(ScheduleUtil.isLeader("$000002", serverList)); assertTrue(ScheduleUtil.isLeader("$000001", serverList)); }