@Test
    public void configure_jdk_tool() {
        final JDK.DescriptorImpl descriptor = ExtensionList.lookupSingleton(JDK.DescriptorImpl.class);
        assertEquals(1, descriptor.getInstallations().length);

        JDK jdk = descriptor.getInstallations()[0];
        assertEquals("jdk11", jdk.getName());
        assertEquals("/jdk", jdk.getHome());

        InstallSourceProperty installSourceProperty = jdk.getProperties().get(InstallSourceProperty.class);
        assertEquals(1, installSourceProperty.installers.size());

        AdoptOpenJDKInstaller installer = installSourceProperty.installers.get(AdoptOpenJDKInstaller.class);
        assertEquals("jdk-11.0.14+9", installer.id);
    }
@author <a href="mailto:vektory79@gmail.com">Viktor Verbitsky</a>
integrations/src/test/java/io/jenkins/plugins/casc/JdkConfiguratorTest.java