@Override
    public void preflight(Path file) throws BackgroundException {
        assumeRole(file, READPERMISSION);
    }
@Test
    public void testPreflightFileAccessDeniedCustomProps() throws Exception {
        final Path file = new Path(new DefaultHomeFinderService(session).find(), new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file));
        file.setAttributes(file.attributes().withAcl(new Acl(new Acl.CanonicalUser(), WRITEPERMISSION)));
        assertThrows(AccessDeniedException.class, () -> new CteraReadFeature(session).preflight(file));
    }