@Restricted(NoExternalUse.class)
    public static void initialized() {}
@Test
    public void classLoadingDeadlock() throws Exception {
        PeepholePermalink.initialized();
        Thread t = new Thread(() -> {
            assertThat("successfully loaded permalinks",
                PermalinkProjectAction.Permalink.BUILTIN.stream().map(PermalinkProjectAction.Permalink::getId).collect(Collectors.toSet()),
                containsInAnyOrder("lastBuild", "lastStableBuild", "lastSuccessfulBuild", "lastFailedBuild", "lastUnstableBuild", "lastUnsuccessfulBuild", "lastCompletedBuild"));
        });
        t.start();
        new PeepholePermalink() {
            @Override
            public boolean apply(Run<?, ?> run) {
                throw new UnsupportedOperationException();
            }

            @Override
            public String getDisplayName() {
                throw new UnsupportedOperationException();
            }

            @Override
            public String getId() {
                throw new UnsupportedOperationException();
            }
        };
        t.join();
    }