DDMFormInstanceRecordWriterTrackerImpl implements DDMFormInstanceRecordWriterTracker { protected void removeDDMFormInstanceRecordWriter( DDMFormInstanceRecordWriter ddmFormInstanceRecordWriter, Map<String, Object> properties) { String type = MapUtil.getString( properties, "ddm.form.instance.record.writer.type"); _ddmFormInstanceRecordWriterExtensions.remove(type); _ddmFormInstanceRecordWriters.remove(type); }  @Override DDMFormInstanceRecordWriter getDDMFormInstanceRecordWriter(
		String type); @Override Map<String, String> getDDMFormInstanceRecordWriterExtensions();  }
@Test public void testRemoveDDMFormInstanceRecordWriter() { DDMFormInstanceRecordWriterTrackerImpl ddmFormInstanceRecordWriterTrackerImpl = new DDMFormInstanceRecordWriterTrackerImpl(); addDDMFormInstanceRecordCSVWriter( ddmFormInstanceRecordWriterTrackerImpl); addDDMFormInstanceRecordJSONWriter( ddmFormInstanceRecordWriterTrackerImpl); DDMFormInstanceRecordWriter ddmFormInstanceRecordWriter = new DDMFormInstanceRecordCSVWriter(); ddmFormInstanceRecordWriterTrackerImpl. removeDDMFormInstanceRecordWriter( ddmFormInstanceRecordWriter, HashMapBuilder.<String, Object>put( "ddm.form.instance.record.writer.extension", "csv" ).put( "ddm.form.instance.record.writer.type", "csv" ).build()); ddmFormInstanceRecordWriter = ddmFormInstanceRecordWriterTrackerImpl. getDDMFormInstanceRecordWriter("csv"); Assert.assertNull(ddmFormInstanceRecordWriter); }