	@Test
	public void test() throws Exception {

		SensorContextTester ctxTester = SensorContextTester.create(folder.getRoot());
		ctxTester.fileSystem().setWorkDir(folder.getRoot().toPath());

		File baseFile = folder.newFile("test.sql");

		FileUtils.copyURLToFile(getClass().getResource("/tsql/sample1.sql"), baseFile);
		String contents = FileUtils.readFileToString(baseFile);

		DefaultInputFile ti = new TestInputFileBuilder("test", folder.getRoot(), baseFile).initMetadata(contents)
				.setLanguage(Constants.languageKey).setContents(contents).setProjectBaseDir(folder.getRoot().toPath())
				.build();
		ctxTester.fileSystem().add(ti);

		AntlrContext antlrContext = Dialects.TSQL.parse(FileUtils.readFileToString(baseFile));
		CpdTokensFiller filler = new CpdTokensFiller();
		filler.fill(ti, ctxTester, antlrContext);
		List<TokensLine> lines = ctxTester.cpdTokens("test:test.sql");
		Assert.assertEquals(2, lines.size());
	}