public static Builder builder() {
    return new Builder();
  }
@Test
  void fail_if_partial_match_on_key_without_a_query() {
    assertThatThrownBy(() -> ComponentQuery.builder().setQualifiers(PROJECT).setPartialMatchOnKey(false).build())
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("A query must be provided if a partial match on key is specified.");
  }