	@Test
	public void testReadMapping() throws Throwable {

		File file = temp.newFile("main", "results.xml");

		FileUtils.copyURLToFile(getClass().getResource("/results/tokensSingle.xml"), file);
		Tokens tokens = sut.read(file);
		Assert.assertEquals(1, tokens.getTokens().size());
		Assert.assertEquals(10, tokens.getComplexity());
		Token token = tokens.getTokens().get(0);
		Assert.assertEquals("Token", token.getcType());
		Assert.assertEquals(32, token.getEndColumnNumber());
		Assert.assertEquals(2, token.getEndLineNumber());
		Assert.assertEquals(31, token.getEndOffset());
		Assert.assertEquals("Comment", token.getKind());
		Assert.assertEquals(4, token.getStartColumnNumber());
		Assert.assertEquals(1, token.getStartLineNumber());
		Assert.assertEquals("#Import-Module PSScriptAnalyzer", token.getText());
		Assert.assertEquals("ParseModeInvariant", token.getTokenFlags());
		Assert.assertEquals("", token.getValue());

	}