@Test
public void testRemoveRole(){

    final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class);
    final RemoveRoleTask task = new RemoveRoleTask(repositoryHandler);
    final ImmutableMultimap.Builder<String, String> builder = new ImmutableMultimap.Builder<String, String>();
    builder.put(ServerAPI.USER_PARAM, "user");
    builder.put(ServerAPI.USER_ROLE_PARAM, "data_updater");
    Exception exception = null;
    try {
        task.execute(builder.build(), mock(PrintWriter.class));
    } catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
    verify(repositoryHandler, times(1)).removeUserRole("user", AvailableRoles.DATA_UPDATER);
}