@Override
    public void setTimestamp(final Path file, final TransferStatus status) throws BackgroundException {
        try {
            if(null != status.getModified()) {
                final FileEntity response = new FilesApi(new BrickApiClient(session))
                        .patchFilesPath(StringUtils.removeStart(file.getAbsolute(), String.valueOf(Path.DELIMITER)),
                                new FilesPathBody().providedMtime(status.getModified() != null ? new DateTime(status.getModified()) : null));
                status.setResponse(new BrickAttributesFinderFeature(session).toAttributes(response));
            }
        }
        catch(ApiException e) {
            throw new BrickExceptionMappingService().map("Failure to write attributes of {0}", e, file);
        }
    }
@Test
    public void testSetTimestampRoot() throws Exception {
        final Path file = new Path("/", EnumSet.of(Path.Type.directory, Path.Type.volume));
        final long ts = System.currentTimeMillis();
        new BrickTimestampFeature(session).setTimestamp(file, ts);
        assertEquals(Timestamp.toSeconds(ts), new BrickAttributesFinderFeature(session).find(file).getModificationDate());
    }