I used this approach to make the tests to execute on Ubuntu/OpenJDK7. Using jboss-cli we we would face the buffer overflow bug on Ubuntu/OpenJDK machines.