@Override
    public BackgroundException map(final String message, final OneDriveAPIException failure, final Path file) {
        if(failure.getResponseCode() > 0) {
            switch(failure.getResponseCode()) {
                case HttpStatus.SC_NOT_FOUND:
                    fileid.cache(file, null);
            }
        }
        return super.map(message, failure, file);
    }
@Test
    public void map() {
        assertTrue(new GraphExceptionMappingService(new GraphFileIdProvider(new OneDriveSession(new Host(new OneDriveProtocol()), new DisabledX509TrustManager(), new DefaultX509KeyManager()))).map(
                new OneDriveAPIException("The OneDrive API responded with too many redirects.")) instanceof InteroperabilityException);
        assertTrue(new GraphExceptionMappingService(new GraphFileIdProvider(new OneDriveSession(new Host(new OneDriveProtocol()), new DisabledX509TrustManager(), new DefaultX509KeyManager()))).map(
                new OneDriveAPIException("m", 404)) instanceof NotfoundException);
        assertTrue(new GraphExceptionMappingService(new GraphFileIdProvider(new OneDriveSession(new Host(new OneDriveProtocol()), new DisabledX509TrustManager(), new DefaultX509KeyManager()))).map(
                new OneDriveAPIException("Couldn't connect to the OneDrive API due to a network error.", new SocketException())) instanceof ConnectionRefusedException);
    }