@Test
public void testCreateRole() throws IOException {

    try {
        mbean.createRole("role1");
        Assert.fail("Function did not throw exception as expected");
    } catch (IOException e) {
        // expected
    }
}