@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);
}