### Question:
IndexDirectoryStructure { public static Factory directoriesByProviderKey( File databaseStoreDir ) { return descriptor -> new SubDirectoryByIndexId( path( baseSchemaIndexFolder( databaseStoreDir ), fileNameFriendly( descriptor.getKey() ) ) ); }  static File baseSchemaIndexFolder( File databaseStoreDir ); static Factory directoriesByProviderKey( File databaseStoreDir ); static Factory directoriesByProvider( File databaseStoreDir ); static Factory given( IndexDirectoryStructure directoryStructure ); static Factory directoriesBySubProvider( IndexDirectoryStructure parentStructure ); abstract File rootDirectory(); abstract File directoryForIndex( long indexId ); static final Factory NONE; }### Answer:
@Test public void shouldSeeCorrectDirectoriesForProviderKey() { assertCorrectDirectories( directoriesByProviderKey( databaseStoreDir ).forProvider( provider ), path( baseIndexDirectory, provider.getKey() ), path( baseIndexDirectory, provider.getKey(), String.valueOf( indexId ) ) ); }