### Question:
ScheduleUtil { public static String runningEntryFromTaskName(String taskName, String ownSign) { if (StringUtils.isEmpty(ownSign) || ownSign.equals(OWN_SIGN_BASE) == true) { return taskName; } return taskName + "$" + ownSign; }  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 runningEntryFromTaskName() { assertEquals("test", ScheduleUtil.runningEntryFromTaskName("test", "BASE")); assertEquals("test$base", ScheduleUtil.runningEntryFromTaskName("test", "base")); assertEquals("$base", ScheduleUtil.runningEntryFromTaskName("", "base")); }