@Test
public void testCompileFileWithSourceMap() throws Exception {

	try (SassCompiler sassCompiler = new RubySassCompiler()) {
		File inputDir = new File(
			"../sass-compiler-jni/test-classes/unit/com/liferay/sass" +
				"/compiler/jni/internal/dependencies/sass-spec/14_imports");
		File sourceMapFile = new File(
			inputDir, ".sass-cache/input.css.map");
		sourceMapFile.deleteOnExit();
		Assert.assertFalse(sourceMapFile.exists());
		File inputFile = new File(inputDir, "input.scss");
		String actualOutput = sassCompiler.compileFile(
			inputFile.getCanonicalPath(), "", true,
			sourceMapFile.getCanonicalPath());
		Assert.assertNotNull(actualOutput);
		Assert.assertTrue(sourceMapFile.exists());
		File expectedOutputFile = new File(
			"../sass-compiler-jni/test-classes/unit/com/liferay/sass" +
				"/compiler/jni/internal/dependencies/sourcemap",
			"expected_output_custom_source_map.css");
		String expectedOutput = read(expectedOutputFile.toPath());
		Assert.assertEquals(
			stripNewLines(expectedOutput), stripNewLines(actualOutput));
	}
}