@Test
public void testSupportedFileOperations() throws Exception {

    List<FileOperation> supportedOps = Arrays.asList(getSupportedOperations());
    AbstractFile tempFile = getTemporaryFile();
    Class<? extends AbstractFile> fileClass = tempFile.getClass();
    for(FileOperation op: FileOperation.values()) {
        boolean opSupported = supportedOps.contains(op);
        assert opSupported == tempFile.isFileOperationSupported(op);
        assert opSupported == AbstractFile.isFileOperationSupported(op, fileClass);
    }
}