@Test
public void testSetAndClearFile() {
source.setFile(feature, FILE_ATTR, file1, monitor);
IDocument doc = source.getDocument(feature, FILE_ATTR, monitor);
File docFile = (File) doc.getContent();
assertNotNull("Doc is null.", doc);
assertEquals("File is not expected.", file1.getAbsolutePath(), docFile.getAbsolutePath());
source.clear(feature, FILE_ATTR, monitor);
doc = source.getDocument(feature, FILE_ATTR, monitor);
docFile = (File) doc.getContent();
assertNotNull("Doc is null.", doc);
assertNull("File is not null.", docFile);
}