I am writing code that often has to work in restricted environment. I sometimes code at home, where it works nicely and the moment I put it to test at work, McAfee or some other firewall blocks it. Sometimes it is not possible to disable such protection.
I need a test suite for my home development environment where I can simulate all these restrictions without having to install all of them myself (for instance it is my experience that it is very hard/impossible to clean all traces of mcafee once you have installed it). I also need to simulate proxy servers.
I am writing code in Java if it helps.
[EDIT: so some Java library for this would be great]