@Test
public void testCreateCustomTempFile() throws Exception {

	/*
	 * This test ensures that the filename of the created temp file has the
	 * same file extension as the input filename.
	 */
	IndexingConfig config = new IndexingConfig();
	String tempFilename = config.createDerivedTempFile("test.pdf").getName();
	assertTrue(tempFilename.startsWith("test"));
	assertTrue(tempFilename.endsWith(".pdf"));
}