// Path: plugface-core/src/main/java/org/plugface/core/internal/di/Node.java
// public class Node<T> {
//     private final Class<T> refClass;
// 
//     public Node(Class<T> refClass) {
//         this.refClass = refClass;
//     }
// 
//     public Class<T> getRefClass() {
//         return refClass;
//     }
// 
//     @Override
//     public String toString() {
//         return "Node{" +
//                 "class=" + refClass.getSimpleName() +
//                 '}';
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (!(o instanceof Node)) {
//             return false;
//         }
//         Node<?> node = (Node<?>) o;
//         return Objects.equals(refClass, node.refClass);
//     }
// 
//     @Override
//     public int hashCode() {
//         return Objects.hash(refClass);
//     }
// }
// 
// Path: plugface-core/src/test/java/org/plugface/core/plugins/DependencyPlugin.java
// @Plugin(name = "dependency")
// public class DependencyPlugin {
// 
//     private final TestPlugin dependency;
//     private final OptionalPlugin optional;
// 
//     @Inject
//     public DependencyPlugin(TestPlugin dependency, OptionalPlugin optional) {
//         this.dependency = dependency;
//         this.optional = optional;
//     }
// 
//     public String test() {
//         return String.format("Dependency: %s\nOptional: %s", dependency.greet(), optional != null ? optional.greet() : null);
//     }
// 
// 
// }
// 
// Path: plugface-core/src/test/java/org/plugface/core/plugins/TestPlugin.java
// @Plugin(name = "test")
// public class TestPlugin extends TestSuperclass {
// 
//     @Override
//     public String greet() {
//         return "Hello PlugFace!";
//     }
// }


import org.plugface.core.plugins.DependencyPlugin;
import org.plugface.core.plugins.TestPlugin;
import java.util.Collection;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.plugface.core.annotations.Plugin;
import org.plugface.core.internal.di.Node;
package org.plugface.core.internal;

/*-
 * #%L
 * PlugFace :: Core
 * %%
 * Copyright (C) 2017 - 2018 PlugFace
 * %%
 * Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
 * #L%
 */




public class AnnotationProcessorTest {

    private AnnotationProcessor sut;

    @Before
    public void setUp() throws Exception {
        sut = new AnnotationProcessor();
    }

    @Test
    public void shouldGetPluginName() {
// Path: plugface-core/src/main/java/org/plugface/core/internal/di/Node.java
// public class Node<T> {
//     private final Class<T> refClass;
// 
//     public Node(Class<T> refClass) {
//         this.refClass = refClass;
//     }
// 
//     public Class<T> getRefClass() {
//         return refClass;
//     }
// 
//     @Override
//     public String toString() {
//         return "Node{" +
//                 "class=" + refClass.getSimpleName() +
//                 '}';
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (!(o instanceof Node)) {
//             return false;
//         }
//         Node<?> node = (Node<?>) o;
//         return Objects.equals(refClass, node.refClass);
//     }
// 
//     @Override
//     public int hashCode() {
//         return Objects.hash(refClass);
//     }
// }
// 
// Path: plugface-core/src/test/java/org/plugface/core/plugins/DependencyPlugin.java
// @Plugin(name = "dependency")
// public class DependencyPlugin {
// 
//     private final TestPlugin dependency;
//     private final OptionalPlugin optional;
// 
//     @Inject
//     public DependencyPlugin(TestPlugin dependency, OptionalPlugin optional) {
//         this.dependency = dependency;
//         this.optional = optional;
//     }
// 
//     public String test() {
//         return String.format("Dependency: %s\nOptional: %s", dependency.greet(), optional != null ? optional.greet() : null);
//     }
// 
// 
// }
// 
// Path: plugface-core/src/test/java/org/plugface/core/plugins/TestPlugin.java
// @Plugin(name = "test")
// public class TestPlugin extends TestSuperclass {
// 
//     @Override
//     public String greet() {
//         return "Hello PlugFace!";
//     }
// }


// Path: plugface-core/src/test/java/org/plugface/core/internal/AnnotationProcessorTest.java
import org.plugface.core.plugins.DependencyPlugin;
import org.plugface.core.plugins.TestPlugin;
import java.util.Collection;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.plugface.core.annotations.Plugin;
import org.plugface.core.internal.di.Node;

package org.plugface.core.internal;

/*-
 * #%L
 * PlugFace :: Core
 * %%
 * Copyright (C) 2017 - 2018 PlugFace
 * %%
 * Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
 * #L%
 */




public class AnnotationProcessorTest {

    private AnnotationProcessor sut;

    @Before
    public void setUp() throws Exception {
        sut = new AnnotationProcessor();
    }

    @Test
    public void shouldGetPluginName() {
        final String name = sut.getPluginName(new TestPlugin());