public static WebService.NewParam createQualifiersParameter(WebService.NewAction action, QualifierParameterContext context) {
    return createQualifiersParameter(action, context, getAllQualifiers(context.getResourceTypes()));
  }
@Test
  public void createQualifiersParameter_whenIgnoreIsSetToFalse_shouldReturnQualifier(){
    ResourceType q3Qualifier = ResourceType.builder("Q3").setProperty("ignored", false).build();
    when(resourceTypes.getAll()).thenReturn(asList(Q1, Q2, q3Qualifier));
    when(newAction.createParam(PARAM_QUALIFIERS)).thenReturn(newParam);
    when(newParam.setPossibleValues(any(Collection.class))).thenReturn(newParam);
    when(newParam.setDescription(any())).thenReturn(newParam);
    NewParam newParam = WsParameterBuilder
      .createQualifiersParameter(newAction, newQualifierParameterContext(i18n, resourceTypes));

    verify(newParam).setPossibleValues(Sets.newHashSet(Q1.getQualifier(), Q2.getQualifier(), q3Qualifier.getQualifier()));
  }