DDMFormInstanceRecordWriterTrackerImpl implements DDMFormInstanceRecordWriterTracker { @Override public Map<String, String> getDDMFormInstanceRecordWriterExtensions() { return Collections.unmodifiableMap( _ddmFormInstanceRecordWriterExtensions); }  @Override DDMFormInstanceRecordWriter getDDMFormInstanceRecordWriter(
		String type); @Override Map<String, String> getDDMFormInstanceRecordWriterExtensions();  }
@Test public void testGetDDMFormInstanceRecordWriterDefaultUpperCaseExtension() { DDMFormInstanceRecordWriterTrackerImpl ddmFormInstanceRecordWriterTrackerImpl = new DDMFormInstanceRecordWriterTrackerImpl(); addDDMFormInstanceRecordXMLWriter( ddmFormInstanceRecordWriterTrackerImpl); Map<String, String> ddmFormInstanceRecordWriterExtensions = ddmFormInstanceRecordWriterTrackerImpl. getDDMFormInstanceRecordWriterExtensions(); Assert.assertEquals( "XML", ddmFormInstanceRecordWriterExtensions.get("xml")); }
@Test public void testGetDDMFormInstanceRecordWriterTypes() { DDMFormInstanceRecordWriterTrackerImpl ddmFormInstanceRecordWriterTrackerImpl = new DDMFormInstanceRecordWriterTrackerImpl(); addDDMFormInstanceRecordCSVWriter( ddmFormInstanceRecordWriterTrackerImpl); addDDMFormInstanceRecordJSONWriter( ddmFormInstanceRecordWriterTrackerImpl); Map<String, String> ddmFormInstanceRecordWriterExtensions = ddmFormInstanceRecordWriterTrackerImpl. getDDMFormInstanceRecordWriterExtensions(); Assert.assertEquals( "csv", ddmFormInstanceRecordWriterExtensions.get("csv")); Assert.assertEquals( "json", ddmFormInstanceRecordWriterExtensions.get("json")); }