RuntimeUtil { public static String currentMethodName() { StackTraceElement[] ste = new Exception().getStackTrace(); int ndx = (ste.length > 1) ? 1 : 0; return new Exception().getStackTrace()[ndx].getMethodName(); }  static String currentClassMethod(); static String currentMethodName(); static String currentClassName(); static String currentNamespace(); static String classLocation(Class<?> clazz); static String classLocation();  }
@Test public void currentMethodName() { assertEquals("currentMethodName", RuntimeUtil.currentMethodName()); }