#vulnerable code 
                             @Test
	public void should_escape() {
		final TestClass absWriter = new TestClass(new StringWriter(), CsvPreference.EXCEL_PREFERENCE);
		
		assertThat(columnsToWrite.length, is(expectedReadResultsFromColumnToWrite.length));
		for( int i = 0; i < columnsToWrite.length; i++ ) {
			Assert.assertEquals(expectedReadResultsFromColumnToWrite[i], absWriter.escapeString(columnsToWrite[i]));
			// assertThat(absWriter.escapeString(columnsToWrite[i]), is(expectedOutput[i]));
		}
		
	} 
                            #location 9 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             @Test
	public void should_escape() {
		final MockWriter absWriter = new MockWriter(new StringWriter(), CsvPreference.EXCEL_PREFERENCE);
		
		assertThat(columnsToWrite.length, is(expectedReadResultsFromColumnToWrite.length));
		for( int i = 0; i < columnsToWrite.length; i++ ) {
			Assert.assertEquals(expectedReadResultsFromColumnToWrite[i], absWriter.escapeString(columnsToWrite[i]));
			// assertThat(absWriter.escapeString(columnsToWrite[i]), is(expectedOutput[i]));
		}
		
	}