protected String generateQueueName() {
		StackTraceElement[] element = Thread.currentThread().getStackTrace();
		// Assumption here is that generateQueueName() is called from the @Test method
		return "queue:" + element[2].getMethodName() + random.nextInt();
	}
Used to capture currently executing test method.
spring-xd-shell/src/test/java/org/springframework/xd/shell/AbstractShellIntegrationTest.java