code: public static boolean isValid(Artifact artifact) {
          return artifact.getGroupId() != null && !FAKE.equals(artifact.getGroupId());
      }
docs: Ensures that the given artifact was correctly populated.
  
  @param artifact the artifact
  @return {@code true} if the artifact is valid, @{code false} otherwise.