DefaultJRestlessContainerRequest implements JRestlessContainerRequest { @Override public boolean equals(final Object other) { if (this == other) { return true; } if (other == null) { return false; } if (!getClass().equals(other.getClass())) { return false; } DefaultJRestlessContainerRequest castOther = (DefaultJRestlessContainerRequest) other; return Objects.equals(baseUri, castOther.baseUri) && Objects.equals(requestUri, castOther.requestUri) && Objects.equals(httpMethod, castOther.httpMethod) && Objects.equals(entityStream, castOther.entityStream) && Objects.equals(headers, castOther.headers); } DefaultJRestlessContainerRequest(@Nonnull RequestAndBaseUri requestAndBaseUri, @Nonnull String httpMethod,
			@Nonnull InputStream entityStream, @Nonnull Map<String, List<String>> headers);  DefaultJRestlessContainerRequest(@Nullable URI baseUri, @Nonnull URI requestUri, @Nonnull String httpMethod,
			@Nonnull InputStream entityStream, @Nonnull Map<String, List<String>> headers); @Override URI getBaseUri(); @Override URI getRequestUri(); @Override String getHttpMethod(); @Override InputStream getEntityStream(); @Override Map<String, List<String>> getHeaders(); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { new CopyConstructorEqualsTester(getConstructor()) .addArguments(0, URI.create("/"), URI.create("/123")) .addArguments(1, URI.create("/"), URI.create("/123")) .addArguments(2, "GET", "POST") .addArguments(3, new ByteArrayInputStream(new byte[0]), new ByteArrayInputStream("123".getBytes())) .addArguments(4, ImmutableMap.of(), ImmutableMap.of("a", ImmutableList.of())) .addArguments(4, ImmutableMap.of("a", ImmutableList.of("a", "b"))) .testEquals(); }