@@ -0,0 +1,1554 @@
+/*%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.Test;%0Aimport org.pf4j.plugin.FailTestExtension;%0Aimport org.pf4j.plugin.TestExtension;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * @author Decebal Suiu%0A */%0Apublic class SingletonExtensionFactoryTest %7B%0A%0A    @Test%0A    public void create() %7B%0A        ExtensionFactory extensionFactory = new SingletonExtensionFactory();%0A        Object extensionOne = extensionFactory.create(TestExtension.class);%0A        Object extensionTwo = extensionFactory.create(TestExtension.class);%0A        assertSame(extensionOne, extensionTwo);%0A    %7D%0A%0A    @Test%0A    public void createNewEachTime() %7B%0A        ExtensionFactory extensionFactory = new SingletonExtensionFactory(FailTestExtension.class.getName());%0A        Object extensionOne = extensionFactory.create(TestExtension.class);%0A        Object extensionTwo = extensionFactory.create(TestExtension.class);%0A        assertNotSame(extensionOne, extensionTwo);%0A    %7D%0A%0A%7D%0A

Add tests for SingletonExtensionFactory