### Question:
StoreMigration { public static void main( String[] args ) throws Exception { Args arguments = Args.withFlags( HELP_FLAG ).parse( args ); if ( arguments.getBoolean( HELP_FLAG, false ) || args.length == 0 ) { printUsageAndExit(); } File storeDir = parseDir( arguments ); FormattedLogProvider userLogProvider = FormattedLogProvider.toOutputStream( System.out ); try ( FileSystemAbstraction fileSystem = new DefaultFileSystemAbstraction() ) { new StoreMigration().run( fileSystem, storeDir, getMigrationConfig(), userLogProvider ); } }  static void main( String[] args ); static void run( final FileSystemAbstraction fs, final File storeDirectory, Config config, LogProvider userLogProvider );  }### Answer:
@Test public void storeMigrationToolShouldBeAbleToMigrateOldStore() throws Exception { StoreMigration.main( new String[]{testDir.databaseDir().getAbsolutePath()} ); GraphDatabaseService database = new TestGraphDatabaseFactory() .newEmbeddedDatabaseBuilder( testDir.databaseDir() ) .setConfig( GraphDatabaseSettings.logs_directory, testDir.directory( "logs" ).getAbsolutePath() ) .newGraphDatabase(); try ( Transaction transaction = database.beginTx() ) { Node node = database.createNode(); node.setProperty( "key", "value" ); transaction.success(); } finally { database.shutdown(); } }