public static String toString(final Host bookmark) {
        return toString(bookmark, false);
    }
@Test
    public void testToString() {
        assertEquals("h – FTP", BookmarkNameProvider.toString(new Host(new TestProtocol(Scheme.ftp), "h")));
        final TestProtocol dav = new TestProtocol(Scheme.http) {
            @Override
            public String getName() {
                return "WebDAV (HTTP)";
            }
        };
        assertEquals("h – WebDAV (HTTP)", BookmarkNameProvider.toString(new Host(dav, "h")));
        assertEquals("h – WebDAV (HTTP)", BookmarkNameProvider.toString(new Host(dav, "h", new Credentials("u", null))));
        assertEquals("u@h – WebDAV (HTTP)", BookmarkNameProvider.toString(new Host(dav, "h", new Credentials("u", null)), true));
        assertEquals("h – WebDAV (HTTP)", BookmarkNameProvider.toString(new Host(dav, "h", new Credentials(null, null)), true));
        assertEquals("h – WebDAV (HTTP)", BookmarkNameProvider.toString(new Host(dav, "h", new Credentials("", null)), true));
    }