@@ -0,0 +1,895 @@
+package no.javabin.infrastructure.http;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport org.junit.Test;%0A%0Apublic class HttpUrlTest %7B%0A%0A    @Test%0A    public void shouldShowUrlWithoutParameters() %7B%0A        HttpUrl url = new HttpUrl(%22https://www.example.com%22);%0A        assertThat(url.toURL().toString()).isEqualTo(%22https://www.example.com%22);%0A    %7D%0A%0A    @Test%0A    public void shouldAddParameters() %7B%0A        HttpUrl url = new HttpUrl(%22https://www.example.com%22).addParameter(%22foo%22, %22bar%22);%0A        assertThat(url.toURL().toString()).isEqualTo(%22https://www.example.com?foo=bar%22);%0A    %7D%0A%0A    @Test%0A    public void shouldUrlEncodeParameters() %7B%0A        HttpUrl url = new HttpUrl(%22https://www.example.com%22).addParameter(%22foo%22, %22is + & = valid characters?%22);%0A        assertThat(url.toURL().toString()).isEqualTo(%22https://www.example.com?foo=is+%252B+%2526+%253D+valid+characters%253F%22);%0A    %7D%0A%0A%7D%0A

Add HttpUrlTest