### Question:
FileSystemLineageWriter implements ILineageWriter { protected String replaceColonInPath( String id ) { String newPath = id; if ( id.matches( "([A-Za-z]:.*)" ) ) { newPath = id.replaceFirst( ":", "" ); } return newPath; } 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 testReplaceColonInPath() throws Exception { String path = "C:\\Users\\joe\\folder\\to\\use\\file.ktr"; String expected = "C\\Users\\joe\\folder\\to\\use\\file.ktr"; String replaced = writer.replaceColonInPath( path ); assertEquals( expected, replaced ); }