static ProjectMeasuresQuery newProjectMeasuresQuery(List<Criterion> criteria, @Nullable Set<String> projectUuids) {
    ProjectMeasuresQuery query = new ProjectMeasuresQuery();
    Optional.ofNullable(projectUuids).ifPresent(query::setProjectUuids);
    criteria.forEach(criterion -> processCriterion(criterion, query));
    return query;
  }
@Test
  public void fail_to_create_query_on_tag_using_eq_operator_and_values() {
    assertThatThrownBy(() -> {
      newProjectMeasuresQuery(singletonList(Criterion.builder().setKey("tags").setOperator(EQ).setValues(asList("java")).build()), emptySet());
    })
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("Tags should be set either by using 'tags = java' or 'tags IN (finance, platform)'");
  }