public void testConfigurationPersistence() throws Exception {
Configuration conf = new Configuration();
conf.setInt("mapred.reduce.tasks", 2);
conf.setBoolean(TitanOutputFormat.FAUNUS_GRAPH_OUTPUT_TITAN_INFER_SCHEMA, false);
FaunusGraph graph = new FaunusGraph(conf);
FaunusPipeline pipeline = new FaunusPipeline(graph);
FaunusCompiler compiler = pipeline.getCompiler();
TitanOutputFormat outputFormat = new TitanCassandraOutputFormat();
assertEquals(graph.getConf().getInt("mapred.reduce.tasks", -1), 2);
assertEquals(compiler.getConf().getInt("mapred.reduce.tasks", -1), 2);
assertFalse(graph.getConf().getBoolean(TitanOutputFormat.FAUNUS_GRAPH_OUTPUT_TITAN_INFER_SCHEMA, true));