title: Print the environment map for Gradle test task
body: <p>With Java plugin test task in Gradle, how can I print the environment map for the JVM process which executes the tests.</p>
  
  <pre><code>test.doFirst {
          environment 'KAFKA_PORT', "${KAFKA_TCP_9902}"
          environment 'DB_PORT', "${MYSQL_TCP_3306}"
          // How to print the map of all environments set so far?
  }
  </code></pre>