@Restricted(NoExternalUse.class)
    /*package*/ static Set<String> getIllegalPersistedUsernames() {
        return new HashSet<>(Arrays.asList(ILLEGAL_PERSISTED_USERNAMES));
    }
@Test
    @Issue("JENKINS-35967")
    public void shouldNotAllowIllegalRestrictedNamesEvenIfTrimmed() {
        for (String username : User.getIllegalPersistedUsernames()) {
            assertIdOrFullNameNotAllowed(username);
            assertIdOrFullNameNotAllowed(" " + username);
            assertIdOrFullNameNotAllowed(username + " ");
            assertIdOrFullNameNotAllowed("      " + username + "    ");
            assertIdOrFullNameNotAllowed("\t" + username + "\t");
        }
    }