Added ability to retrieve Environment and Service from the JUnit rule