	@Test
	public final void testReadMetadataFields() throws Exception {

		setUp();
		CSVReader reader = metadataLoader.createReader();
		String[] metadataFields = metadataLoader.readMetadataFields(reader);

		assertEquals(4, metadataFields.length);
		assertEquals("path",metadataFields[0]);
		assertEquals("InputMetadata1",metadataFields[1]);
		assertEquals("InputMetadata2",metadataFields[2]);
		assertEquals("InputMetadata3",metadataFields[3]);
		reader.close();
	}