Collection<Object[]> () { return List.of(new Object[][]{ {"WORD", "branch", true}, {"UNDERSCORED_WORD", "new_branch", true}, {"HIERARCHY", "user/branch", true}, {"HIERARCHY_2", "user/branch/sub_branch", true}, {"BEGINS_WITH_SLASH", "/branch", true}, {"WITH_DOTS", "complex.branch.name", true}, {"WITH_WHITESPACES", "branch with whitespaces", true}, {"WITH_SPECIAL_CHARS", "bra~nch-^%$", true}, {"NOT_RESERVED", "TIP", true}, {"CONTAINS_COLON", "bra:nch", false}, {"ONLY_DIGITS", "876876", false}, {"START_WITH_COLON", ":branch", false}, {"ENDS_WITH_COLON", "branch:", false}, {"RESERVED_WORD", "tip", false}, {"BRANCH_CONFLICT", BRANCH_NAME, false}, {"UNCOMMITTED_BRANCH_CONFLICT", UNCOMMITTED_BRANCH, false}, }); }