Plugin create(Options.Plugin plugin) {
        try {
            return instantiate(plugin.pluginString(), plugin.pluginClass(), plugin.argument());
        } catch (IOException | URISyntaxException e) {
            throw new CucumberException(e);
        }
    }
@Test
    void instantiates_custom_deprecated_appendable_arg_plugin() throws IOException {
        Path tempDirPath = tmp.resolve("out.txt").toAbsolutePath();
        PluginOption option = parse(WantsAppendable.class.getName() + ":" + tempDirPath);
        WantsAppendable plugin = (WantsAppendable) fc.create(option);
        plugin.writeAndClose("hello");
        String written = String.join("", readAllLines(tempDirPath));
        assertThat(written, is(equalTo("hello")));
    }