### Question:
FileSystemLineageWriter implements ILineageWriter { @Override public void outputLineageGraph( LineageHolder holder ) throws IOException { if ( holder != null ) { IMetaverseBuilder builder = holder.getMetaverseBuilder(); if ( builder != null ) { try ( OutputStream fos = getGraphOutputStream( holder ) ) { if ( fos != null ) { graphWriter.outputGraph( builder.getGraph(), fos ); } else { log.debug( "No graph output stream associated with this LineageWriter" ); } } } } } FileSystemLineageWriter(); @Override void outputExecutionProfile( LineageHolder holder ); @Override void outputLineageGraph( LineageHolder holder ); IGraphWriter getGraphWriter(); void setGraphWriter( IGraphWriter graphWriter ); String getOutputFolder(); void setOutputFolder( String outputFolder ); @Override String getOutputStrategy(); @Override void setOutputStrategy( String strategy ); @Override void cleanOutput( LineageHolder holder ); static final String DEFAULT_OUTPUT_FOLDER; }### Answer:
@Test public void testOutputLineageGraph() throws Exception { Graph g = new TinkerGraph(); IMetaverseBuilder builder = new MetaverseBuilder( g ); holder.setMetaverseBuilder( builder ); writer.outputLineageGraph( holder ); }