@Test
public void testCompileStringWithSourceMap() throws Exception {

	SassCompiler sassCompiler = new JniSassCompiler();
	Class<?> clazz = getClass();
	URL url = clazz.getResource("dependencies");
	File inputDir = new File(url.toURI());
	File inputFile = new File(inputDir, "/sass-spec/14_imports/input.scss");
	File sourceMapFile = new File(
		inputDir, "/sass-spec/14_imports/input.css.map");
	sourceMapFile.deleteOnExit();
	Assert.assertFalse(sourceMapFile.exists());
	String input = read(inputFile.toPath());
	String actualOutput = sassCompiler.compileString(
		input, inputFile.getCanonicalPath(), "", true);
	Assert.assertNotNull(actualOutput);
	Assert.assertTrue(sourceMapFile.exists());
	File expectedOutputFile = new File(
		inputDir, "/sourcemap/expected_output.css");
	String expectedOutput = read(expectedOutputFile.toPath());
	Assert.assertEquals(
		stripNewLines(expectedOutput), stripNewLines(actualOutput));
}