/** * Create a {@code TestTag} from the supplied {@code name}. * * <p>Consider checking whether the syntax of the supplied {@code name} * is {@linkplain #isValid(String) valid} before attempting to create a * {@code TestTag} using this factory method. * * <p>Note: the supplied {@code name} will be {@linkplain String#trim() trimmed}. * * @param name the name of the tag; must be syntactically <em>valid</em> * @throws PreconditionViolationException if the supplied tag name is not * syntactically <em>valid</em> * @see TestTag#isValid(String) */ public static TestTag create(String name) throws PreconditionViolationException { return new TestTag(name); }