new URI("s://ui@host:5555host/path") doesn't throw exception. Please, do parsing of authority inside the constructor.