UpdateByQuery extends AbstractAction<UpdateByQueryResult> { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } return super.equals(obj); } protected  UpdateByQuery(Builder builder); @Override String getPathToResult(); @Override String getRestMethodName(); @Override int hashCode(); @Override boolean equals(Object obj); @Override UpdateByQueryResult createNewElasticSearchResult(String responseBody, int statusCode, String reasonPhrase, Gson gson);  }
@Test public void equals() { UpdateByQuery deleteUserKramer = new UpdateByQuery.Builder("{\"user\":\"kramer\"}") .addIndex("twitter") .addIndex("searchbox") .addType("tweet") .addType("jest") .build(); UpdateByQuery deleteUserKramerDuplicate = new UpdateByQuery.Builder("{\"user\":\"kramer\"}") .addIndex("twitter") .addIndex("searchbox") .addType("tweet") .addType("jest") .build(); assertEquals(deleteUserKramer, deleteUserKramerDuplicate); }