@Override
    public <T> T create(Class<T> extensionClass) {
        log.debug("Create instance for extension '{}'", extensionClass.getName());
        try {
            return extensionClass.newInstance();
        } catch (Exception e) {
            throw new PluginRuntimeException(e);
        }
    }
@Test
    public void testCreateFailConstructor() {
        JavaFileObject object = JavaSources.compile(FailTestExtension);
        JavaFileObjectClassLoader classLoader = new JavaFileObjectClassLoader();
        Class<?> extensionClass = (Class<?>) classLoader.load(object).values().toArray()[0];
        assertThrows(PluginRuntimeException.class, () -> extensionFactory.create(extensionClass));
    }