### Question:
Utils { public static String getNodeIdShort(String nodeId) { return nodeId == null ? "<null>" : nodeId.substring(0, 8); }  static String longToTimePeriod(long msec); static SecureRandom getRandom(); static String getNodeIdShort(String nodeId); static long toUnixTime(long javaTime); static long fromUnixTime(long unixTime); @SafeVarargs static T[] mergeArrays(T[]... arr); static String align(String s, char fillChar, int targetLen, boolean alignRight); static String repeat(String s, int n); static void showErrorAndExit(String message, String... messages); static void showWarn(String message, String... messages); static String sizeToStr(long size); static void sleep(long ms); @Deprecated static long time();  }### Answer:
@Test public void getNodeIdShort() { Assert.assertEquals("abcdefgh", Utils.getNodeIdShort("abcdefghijkl")); Assert.assertEquals("<null>", Utils.getNodeIdShort(null)); }