1. A method of testing a J2EE application, wherein the J2EE application comprises modules, the method comprising the steps of: identifying ( 204 ), from an application deployment descriptor, modules comprised within the J2EE application; identifying, from an identified module, at least one QOS element; identifying, from the identified QOS element, a software resource to be tested; generating Java test code; identifying, for the software resource to be tested, a user identification and a user password for a user that is a member of a role intended to protect the software resource; and testing the software resource to be tested by use of the Java test code, including passing as parameters to the Java test code at run time the user identification and user password.