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