@Test
public void testWriteHeadersOnOpen() throws IOException {
Writer writer = mock(Writer.class);
JobOptions jobOptions = mock(JobOptions.class);
when(jobOptions.getParameter("location")).thenReturn("test.csv");
// String hashAlgorithm = config.getProperties().getProperty("HASH_ALGORITHM").toString();
when(config.getBooleanProperty(DroidGlobalProperty.CSV_EXPORT_ROW_PER_FORMAT)).thenReturn(false);
itemWriter.setOptions(ExportOptions.ONE_ROW_PER_FORMAT);
itemWriter.open(writer);