Erick already pointed you at the "cleanup" rule. This is fairly
generic, but if you know
the properties being modified you should still clean them up in @After or
@AfterClass -- this is useful for other people to know that you're modifying
them, if for nothing else.

Randomized testing package has SystemPropertiesInvariantRule which
will allow you to check if there's any property "leaking" from your
test. Some properties have to be excluded because various (system and
non-system) classes set them occasionally upon initialization.

Dawid
On Fri, Aug 10, 2018 at 2:13 AM Erick Erickson <[EMAIL PROTECTED]> wrote:

---------------------------------------------------------------------