DefaultGatewayRequest implements GatewayRequest { @Override public boolean equals(final Object other) { if (this == other) { return true; } if (other == null) { return false; } if (!getClass().equals(other.getClass())) { return false; } DefaultGatewayRequest castOther = (DefaultGatewayRequest) other; return Objects.equals(resource, castOther.resource) && Objects.equals(path, castOther.path) && Objects.equals(httpMethod, castOther.httpMethod) && Objects.equals(headers, castOther.headers) && Objects.equals(queryStringParameters, castOther.queryStringParameters) && Objects.equals(pathParameters, castOther.pathParameters) && Objects.equals(stageVariables, castOther.stageVariables) && Objects.equals(requestContext, castOther.requestContext) && Objects.equals(body, castOther.body) && Objects.equals(base64Encoded, castOther.base64Encoded); } DefaultGatewayRequest();   DefaultGatewayRequest(String resource, String path, String httpMethod, Map<String, String> headers,
			Map<String, String> queryStringParameters, Map<String, String> pathParameters,
			Map<String, String> stageVariables, DefaultGatewayRequestContext requestContext, String body,
			boolean base64Encoded); @Override String getResource(); void setResource(String resource); @Override String getPath(); void setPath(String path); @Override String getHttpMethod(); void setHttpMethod(String httpMethod); @Override Map<String, String> getHeaders(); void setHeaders(Map<String, String> headers); @Override Map<String, String> getQueryStringParameters(); void setQueryStringParameters(Map<String, String> queryStringParameters); @Override Map<String, String> getPathParameters(); void setPathParameters(Map<String, String> pathParameters); @Override Map<String, String> getStageVariables(); void setStageVariables(Map<String, String> stageVariables); @Override GatewayRequestContext getRequestContext(); void setRequestContext(DefaultGatewayRequestContext requestContext); @Override String getBody(); void setBody(String body); @Override boolean isBase64Encoded(); void setIsBase64Encoded(boolean base64Encoded); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { DefaultGatewayRequestContext requestContext = new DefaultGatewayRequestContext(); new CopyConstructorEqualsTester(getConstructor()) .addArguments(0, null, "resource") .addArguments(1, null, "path") .addArguments(2, null, "httpMethod") .addArguments(3, null, ImmutableMap.of("headers", "headers")) .addArguments(4, null, ImmutableMap.of("queryStringParameters", "queryStringParameters")) .addArguments(5, null, ImmutableMap.of("pathParameters", "pathParameters")) .addArguments(6, null, ImmutableMap.of("stageVariables", "stageVariables")) .addArguments(7, null, requestContext) .addArguments(8, null, "body") .addArguments(9, true, false) .testEquals(); }