I have an IntelliJ IDEA plugin that adds a -javaagent to the java command line for running tests and main code via the IDE.