@@ -0,0 +1,1827 @@
+/*%0A * Copyright (C) 2012-present the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.pf4j;%0A%0Aimport org.junit.jupiter.api.Test;%0Aimport org.pf4j.plugin.TestExtension;%0Aimport org.pf4j.plugin.TestExtensionPoint;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertEquals;%0Aimport static org.mockito.Mockito.CALLS_REAL_METHODS;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.when;%0A%0A/**%0A * @author Decebal Suiu%0A */%0Apublic class AbstractPluginManagerTest %7B%0A%0A    @Test%0A    public void getExtensionsByType() %7B%0A        AbstractPluginManager pluginManager = mock(AbstractPluginManager.class, CALLS_REAL_METHODS);%0A%0A        ExtensionFinder extensionFinder = mock(ExtensionFinder.class);%0A        List%3CExtensionWrapper%3CTestExtensionPoint%3E%3E extensionList = new ArrayList%3C%3E(1);%0A        extensionList.add(new ExtensionWrapper%3C%3E(new ExtensionDescriptor(0, TestExtension.class), new DefaultExtensionFactory()));%0A        when(extensionFinder.find(TestExtensionPoint.class)).thenReturn(extensionList);%0A%0A        pluginManager.extensionFinder = extensionFinder;%0A        List%3CTestExtensionPoint%3E extensions = pluginManager.getExtensions(TestExtensionPoint.class);%0A        assertEquals(1, extensions.size());%0A    %7D%0A%0A%7D%0A

Add AbstractPluginManagerTest