@Override
    public BackgroundException map(final String message, final ApiException failure, final Path file) {
        switch(failure.getCode()) {
            case HttpStatus.SC_NOT_FOUND:
                fileid.cache(file, null);
        }
        return super.map(message, failure, file);
    }
@Test
    public void testDisconnect() {
        final StoregateExceptionMappingService service = new StoregateExceptionMappingService(new StoregateIdProvider(
                new StoregateSession(new Host(new StoregateProtocol()), new DisabledX509TrustManager(), new DefaultX509KeyManager())
        ));
        assertEquals(ConnectionRefusedException.class, service.map(
                new ApiException(new ProcessingException(new SSLException(new SocketException("Operation timed out (Read failed)"))))).getClass());
    }