public BackgroundException map(final IOException failure, final Path directory) {
        return super.map("Connection failed", failure, directory);
    }
@Test
    public void testMapPathName() {
        final DefaultIOExceptionMappingService s = new DefaultIOExceptionMappingService();
        assertEquals("Download n failed.", s.map("Download {0} failed", new SocketException("s"),
            new Path("/n", EnumSet.of(Path.Type.directory, Path.Type.volume))).getMessage());
        assertEquals("Download failed n.", s.map("Download failed {0}", new SocketException("s"),
            new Path("/n", EnumSet.of(Path.Type.directory, Path.Type.volume))).getMessage());
        assertEquals("Download failed (/n).", s.map("Download failed", new SocketException("s"),
            new Path("/n", EnumSet.of(Path.Type.directory, Path.Type.volume))).getMessage());
    }