// login as user2 and test
lc = Util.getCLMLoginContext("user2", "password2");
lc.login();
try {
// expected to pass since user2 belongs to Role2
partialDDBean.toBeInvokedByRole2();
// expected to fail since user2 *doesn't* belong to Role1
try {
partialDDBean.toBeInvokedOnlyByRole1();
Assert.fail("Call to toBeInvokedOnlyByRole1() was expected to fail");