TemporaryFolder has to be an instance field or the other fields have to be static.