public static String checkComponentKey(String key) {
    checkArgument(!isNullOrEmpty(key), "Component key can't be empty");
    checkArgument(key.length() <= MAX_COMPONENT_KEY_LENGTH, "Component key length (%s) is longer than the maximum authorized (%s). '%s' was provided.",
      key.length(), MAX_COMPONENT_KEY_LENGTH, key);
    return key;
  }
@Test
  void check_key() {
    String key = repeat("a", 400);

    assertThat(ComponentValidator.checkComponentKey(key)).isEqualTo(key);
  }