...
To authenticate your test to the Context object, call authenticated(). This will pop up a box asking the current user for an admin/password.
Creating an xml dataset for your unit test
You can add your own test data xml files. By convention, test data sets are placed in src/test/resources in the project structure.
...