@Test
public void testSetRoleNPE() {

    try {
        controller.setRole(null, "");
        fail("Should have thrown an Exception");
    }
    catch (NullPointerException e) {
        //exptected
    }
    try {
        controller.setRole(HARole.ACTIVE, null);
        fail("Should have thrown an Exception");
    }
    catch (NullPointerException e) {
        //exptected
    }
}