@@ -0,0 +1,825 @@
+package us.codecraft.webmagic;%0A%0Aimport org.junit.Test;%0Aimport us.codecraft.webmagic.utils.HttpConstant;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A/**%0A * @author code4crafter@gmail.com%0A *         Date: 17/3/11%0A */%0Apublic class RequestTest %7B%0A%0A    @Test%0A    public void testEqualsAndHashCode() throws Exception %7B%0A        Request requestA = new Request(%22http://www.google.com/%22);%0A        Request requestB = new Request(%22http://www.google.com/%22);%0A        assertThat(requestA.hashCode()).isEqualTo(requestB.hashCode());%0A        assertThat(requestA).isEqualTo(requestB);%0A        requestA.setMethod(HttpConstant.Method.GET);%0A        requestA.setMethod(HttpConstant.Method.POST);%0A        assertThat(requestA).isNotEqualTo(requestB);%0A        assertThat(requestA.hashCode()).isNotEqualTo(requestB.hashCode());%0A    %7D%0A%7D%0A

add tests #483