public void testPaste() throws IOException, ConfigurationException, SecurityException, URISyntaxException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
Index index = Index.getInstance( basename );
assertEquals( 2, index.documents( 0 ).frequency() );
assertEquals( 2, index.documents( 1 ).frequency() );
assertEquals( 1, index.documents( 2 ).frequency() );
assertEquals( 1, index.documents( 3 ).frequency() );
SemiExternalGammaList frequencies = new SemiExternalGammaList( new InputBitStream( basename + "-mo" + DiskBasedIndex.FREQUENCIES_EXTENSION ), 1, 4 );