@@ -0,0 +1,2594 @@
+/*%0A * Licensed to Elasticsearch under one or more contributor%0A * license agreements. See the NOTICE file distributed with%0A * this work for additional information regarding copyright%0A * ownership. Elasticsearch licenses this file to you under%0A * the Apache License, Version 2.0 (the %22License%22); you may%0A * not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Apackage org.elasticsearch.cluster.routing;%0A%0Aimport org.elasticsearch.index.Index;%0Aimport org.elasticsearch.index.shard.ShardId;%0Aimport org.elasticsearch.test.ESTestCase;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Apublic class IndexShardRoutingTableTests extends ESTestCase %7B%0A    public void testEqualsAttributesKey() %7B%0A        List%3CString%3E attr1 = Arrays.asList(%22a%22);%0A        List%3CString%3E attr2 = Arrays.asList(%22b%22);%0A        IndexShardRoutingTable.AttributesKey attributesKey1 = new IndexShardRoutingTable.AttributesKey(attr1);%0A        IndexShardRoutingTable.AttributesKey attributesKey2 = new IndexShardRoutingTable.AttributesKey(attr1);%0A        IndexShardRoutingTable.AttributesKey attributesKey3 = new IndexShardRoutingTable.AttributesKey(attr2);%0A        String s = %22Some random other object%22;%0A        assertEquals(attributesKey1, attributesKey1);%0A        assertEquals(attributesKey1, attributesKey2);%0A        assertNotEquals(attributesKey1, null);%0A        assertNotEquals(attributesKey1, s);%0A        assertNotEquals(attributesKey1, attributesKey3);%0A    %7D%0A%0A    public void testEquals() %7B%0A        Index index = new Index(%22a%22, %22b%22);%0A        ShardId shardId = new ShardId(index, 1);%0A        ShardId shardId2 = new ShardId(index, 2);%0A        IndexShardRoutingTable table1 = new IndexShardRoutingTable(shardId, new ArrayList%3C%3E());%0A        IndexShardRoutingTable table2 = new IndexShardRoutingTable(shardId, new ArrayList%3C%3E());%0A        IndexShardRoutingTable table3 = new IndexShardRoutingTable(shardId2, new ArrayList%3C%3E());%0A        String s = %22Some other random object%22;%0A        assertEquals(table1, table1);%0A        assertEquals(table1, table2);%0A        assertNotEquals(table1, null);%0A        assertNotEquals(table1, s);%0A        assertNotEquals(table1, table3);%0A    %7D%0A%7D%0A

Add IndexShardRoutingTableTests back to es test suite