FlatSearchResponse response2 = indexer.searchFlat( new FlatSearchRequest( q, tempContext ) );
Collection<ArtifactInfo> tempContent = response2.getResults();
assertEquals( tempContent.toString(), 2, tempContent.size() );
// RAMDirectory is closed with context, forcing timestamp update
tempContext.updateTimestamp( true );
// A change in RAMDirectory and Directory behavior in general: it will copy the Index files ONLY
// So we must make sure that timestamp file is transferred correctly.
RAMDirectory tempDir2 = new RAMDirectory();
IndexUtils.copyDirectory( tempContext.getIndexDirectory(), tempDir2 );