    1   package test.net.sourceforge.pmd.dfa;
    2
    3   import junit.framework.TestCase;
    4   import net.sourceforge.pmd.ast.ASTMethodDeclaration;
    5   import net.sourceforge.pmd.ast.SimpleNode;
    6   import net.sourceforge.pmd.dfa.Structure;
    7
    8   public class StructureTest extends TestCase {
    9
    10      public void testAddResultsinDFANodeContainingAddedNode() {
    11          Structure s = new Structure();
    12          SimpleNode n = new ASTMethodDeclaration(1);
    13          assertEquals(n, s.createNewNode(n).getSimpleNode());
    14      }
    15  }