KatelloUserServiceAdapter implements UserServiceAdapter { @Override public RoleInfo addUserToRole(String roleName, String username) { throw new UnsupportedOperationException(); }  @Override boolean validateUser(String username, String password); @Override UserInfo createUser(UserInfo user); @Override UserInfo updateUser(String username, UserInfo user); @Override void deleteUser(String username); @Override UserInfo findByLogin(String username); @Override Collection<? extends UserInfo> listUsers(); @Override Collection<? extends OwnerInfo> getAccessibleOwners(String username); @Override RoleInfo createRole(RoleInfo role); @Override RoleInfo updateRole(String roleName, RoleInfo role); @Override RoleInfo addUserToRole(String roleName, String username); @Override RoleInfo removeUserFromRole(String roleName, String username); @Override RoleInfo addPermissionToRole(String roleName, PermissionBlueprintInfo permission); @Override RoleInfo removePermissionFromRole(String roleName, String permissionId); @Override void deleteRole(String roleName); @Override RoleInfo getRole(String roleName); @Override Collection<? extends RoleInfo> listRoles();  }
@Test(expected = UnsupportedOperationException.class) public void addUserToRole() throws Exception { kusa.addUserToRole("role name", "username"); }