    1   package test.net.sourceforge.pmd.cpd;
    2
    3   import junit.framework.TestCase;
    4   import net.sourceforge.pmd.cpd.TokenEntry;
    5
    6   public class TokenEntryTest extends TestCase {
    7
    8       public void testSimple() {
    9           TokenEntry.clearImages();
    10          TokenEntry mark = new TokenEntry("public", "/var/Foo.java", 1);
    11          assertEquals(1, mark.getBeginLine());
    12          assertEquals("/var/Foo.java", mark.getTokenSrcID());
    13          assertEquals(0, mark.getIndex());
    14      }
    15  }