You're testing two completely separate features of the class: 1) closing of environment, 2) converting environment to string. There should be two separate test methods. This anti-pattern is sometimes called "Test it all" (http://stackoverflow.com/questions/333682/tdd-anti-patterns-catalogue)