public static KernelPlugin createFromObject(Object target, String pluginName) {
        Class<?> clazz = target.getClass();
        return KernelPluginFactory.createFromObject(clazz, target, pluginName);
    }
@Test
    public void createFromObjectTest() {
        KernelPlugin plugin = KernelPluginFactory.createFromObject(
            new TestPlugin(),
            "test");

        Assertions.assertNotNull(plugin);
        Assertions.assertEquals(plugin.getName(), "test");
        Assertions.assertEquals(plugin.getFunctions().size(), 2);

        KernelFunction<?> testFunction = plugin.getFunctions()
            .get("testFunction");

        Assertions.assertNotNull(testFunction);
        Assertions.assertNotNull(testFunction.getMetadata().getOutputVariableType());
        Assertions.assertEquals(testFunction.getMetadata().getOutputVariableType().getType(),
            String.class);
        Assertions.assertEquals(testFunction.getMetadata().getParameters().size(), 1);
        Assertions.assertEquals(testFunction.getMetadata().getParameters().get(0).getType(),
            String.class.getName());

    }