### Question:
ThreadUtils { public static String getStacktraceSpec(StackTraceElement element) { String className = element.getClassName(); return className.substring(className.lastIndexOf(".") + 1) + "." + element.getMethodName() + ":" + element.getLineNumber(); } private  ThreadUtils(); static void sleep(long millis); static void sleep(long time, TimeUnit timeUnit); static String last3Stacktrace(); static String last5Stacktrace(); static String lastStacktrace(); static String lastStacktrace(StackTraceElement[] stackTraceElements); static String lastStacktrace(StackTraceElement[] stackTraceElements, int elementNumber); static String getStacktraceSpec(StackTraceElement element); static String getStackTrace(Throwable exception); static String getStackTraceSilently(Throwable exception);  }### Answer:
@Test void getStacktraceSpec() { StackTraceElement element = Thread.currentThread().getStackTrace()[0]; String result = ThreadUtils.getStacktraceSpec(element); assertNotNull(result); assertTrue(result.contains(".")); assertTrue(result.contains(":")); }