@Test public void testLiteralDirectory() {

    TextIndexLuceneAssembler assembler = new TextIndexLuceneAssembler();
    
    Resource root = SIMPLE_INDEX_SPEC_LITERAL_DIR;
    Assembler a = Assembler.general;
    // the open method is not supposed to throw exceptions when the directory is
    // a literal
    TextIndexLucene index = (TextIndexLucene)assembler.open(a, root, /*mode*/ null);
    try {
        assertNotNull(index);
    }
    finally {
        index.close();
    }
}