void () { ExtensionsAreaImpl extensionsArea = new ExtensionsAreaImpl(new ExtensionPointImplTest.MyComponentManager()); extensionsArea.registerExtensionPoint("plugin.ep1", TestExtensionClassOne.class.getName(), ExtensionPoint.Kind.BEAN_CLASS, false); registerExtension(extensionsArea, "plugin", "<plugin:ep1 xmlns:plugin=\"plugin\" order=\"LAST\"><text>3</text></plugin:ep1>"); registerExtension(extensionsArea, "plugin", "<ep1 xmlns=\"plugin\" order=\"FIRST\"><text>1</text></ep1>"); registerExtension(extensionsArea, "plugin", "<extension point=\"plugin.ep1\"><text>2</text></extension>"); ExtensionPoint<?> extensionPoint = extensionsArea.getExtensionPoint("plugin.ep1"); TestExtensionClassOne[] extensions = (TestExtensionClassOne[]) extensionPoint.getExtensions(); assertThat(extensions).hasSize(3); assertEquals("1", extensions[0].getText()); assertEquals("2", extensions[1].getText()); assertEquals("3", extensions[2].getText()); }