### Question:
Utils { public static String align(String s, char fillChar, int targetLen, boolean alignRight) { if (targetLen <= s.length()) { return s; } String alignString = repeat("" + fillChar, targetLen - s.length()); return alignRight ? alignString + s : s + alignString; }  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 align() { Assert.assertEquals("test", Utils.align("test", 'c', 1, true)); Assert.assertEquals("00test", Utils.align("test", '0', 6, true)); }