Enable passing of parameters to the java snippets.

Enable passing parameters in to java snippets (for the tests)