public static void checkProjectKey(String keyCandidate) {
    checkArgument(isValidProjectKey(keyCandidate), MALFORMED_KEY_MESSAGE, keyCandidate, ALLOWED_CHARACTERS_MESSAGE);
  }
@Test
  public void checkProjectKey_fail_if_only_digit() {
    assertThatThrownBy(() -> ComponentKeys.checkProjectKey("0123"))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("Malformed key for '0123'. Allowed characters are alphanumeric, '-', '_', '.' and ':', with at least one non-digit.");
  }