@Test
public void testRemoveGroup() throws IOException {

    Mockito.when(userAdmin.removeRole("group1")).thenReturn(true);
    boolean isRemoved = mbean.removeGroup("group1");
    Assert.assertTrue(isRemoved);
}