DefaultServiceRequest extends ServiceDto implements ServiceRequest { @Override public boolean equals(final Object other) { if (this == other) { return true; } if (other == null) { return false; } if (!getClass().equals(other.getClass())) { return false; } DefaultServiceRequest castOther = (DefaultServiceRequest) other; return Objects.equals(getBody(), castOther.getBody()) && Objects.equals(getHeaders(), castOther.getHeaders()) && Objects.equals(requestUri, castOther.requestUri) && Objects.equals(httpMethod, castOther.httpMethod); } DefaultServiceRequest();  DefaultServiceRequest(@Nullable String body, @Nonnull Map<String, List<String>> headers,
			@Nonnull URI requestUri, @Nonnull String httpMethod); @Override URI getRequestUri(); void setRequestUri(@Nonnull URI requestUri); @Override String getHttpMethod(); void setHttpMethod(@Nonnull String httpMethod); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { new CopyConstructorEqualsTester(getConstructor()) .addArguments(0, null, "", "123") .addArguments(1, ImmutableMap.of(), ImmutableMap.of("123", ImmutableList.of()), ImmutableMap.of("123", ImmutableList.of("1"))) .addArguments(2, URI.create("/"), URI.create("/a")) .addArguments(3, "GET", "POST") .testEquals(); }