@Test(expected = BuilderException.class)
public void testCreateIndexDBBadPath() throws Exception {

    final List<SearchIndexValue> indexValues = new ArrayList<>();
    final String docFileRoot = FilenameUtils.concat(temporaryFolder.getRoot().getPath(), "Foo");
    final String dbDirName = DocSetSupport.getDBDir(docFileRoot);
    final File dbDir = getFile(dbDirName);
    FileUtils.forceMkdir(dbDir);
    DBSupport.createIndex(indexValues, dbDirName + "FOO");
}