1. A method, in a data processing system having at least one processor, for performing security role definition testing, comprising: receiving, in a container of a runtime environment of the data processing system, an application having one or more methods and one or more security role definitions associated with the one or more methods; receiving, in the container, a properties object specifying a user identifier to security role mapping; executing, in the container, by the processor, a test application on an execution of the one or more methods of the application based on the user identifier to security role mapping and the security role definitions, wherein the test application tests an operation of the application with regard to the security role definitions; and outputting a result of the execution of the test application on the execution of the one or more methods of the application.