### Question:
FixedPermissionsProvider implements FilePermissionsProvider { @Override public FilePermissions get(Path local, AbsoluteUnixPath inContainer) { return Files.isDirectory(local) ? directoryPermissions : filePermissions; } FixedPermissionsProvider(FilePermissions filesPermission, FilePermissions directoriesPermission); @Override FilePermissions get(Path local, AbsoluteUnixPath inContainer);  }### Answer:
@Test public void testApply_file() { FixedPermissionsProvider provider = new FixedPermissionsProvider(filesPermission, directoriesPermission); Assert.assertEquals(filesPermission, provider.get(file.toPath(), AbsoluteUnixPath.get("/"))); }
@Test public void testApply_directory() { FixedPermissionsProvider provider = new FixedPermissionsProvider(filesPermission, directoriesPermission); Assert.assertEquals( directoriesPermission, provider.get(directory.toPath(), AbsoluteUnixPath.get("/"))); }