static void parseAuthority(final StringReader reader, final Host host, final Consumer<HostParserException> decorator) throws HostParserException {
        parseUserInfo(reader, host, decorator);
        parseHostname(reader, host, decorator);
        parsePath(reader, host, false, decorator);
    }
@Test
    public void testParseAuthorityUserDefaultDomain() throws HostParserException {
        final Host host = new Host(new TestProtocol() {
            @Override
            public boolean isHostnameConfigurable() {
                return false;
            }

            @Override
            public String getDefaultHostname() {
                return "test";
            }
        });
        final String authority = "user@/";
        final HostParser.StringReader reader = new HostParser.StringReader(authority);

        HostParser.parseAuthority(reader, host, null);
        assertEquals(host.getProtocol().getDefaultHostname(), host.getHostname());
    }