public static void checkProjectKey(String keyCandidate) {
    checkArgument(isValidProjectKey(keyCandidate), MALFORMED_KEY_MESSAGE, keyCandidate, ALLOWED_CHARACTERS_MESSAGE);
  }
@Test
  public void checkProjectKey_fail_if_space() {
    assertThatThrownBy(() -> ComponentKeys.checkProjectKey("ab 12"))
      .isInstanceOf(IllegalArgumentException.class);
  }