@Test 
public void testEquals() throws IOException {

    FileDataSourceId sourceId = FileDataSourceId.from(FILE);
    Assert.assertEquals(sourceId, FileDataSourceId.from(FILE));
    Assert.assertNotSame(sourceId, FileDataSourceId.from(FILE));        
    Assert.assertFalse(sourceId.equals(FileDataSourceId.from(OTHER)));
    Assert.assertEquals(sourceId, FileDataSourceId.parse(FILE.getPath()));
    Assert.assertNotSame(sourceId, FileDataSourceId.parse(FILE.getPath()));        
    Assert.assertFalse(sourceId.equals(FileDataSourceId.parse(OTHER.getPath())));
    Assert.assertEquals(sourceId, FileDataSourceId.parse((CharSequence)sourceId));
    Assert.assertSame(sourceId, FileDataSourceId.parse((CharSequence)sourceId));        
}