assertFalse(def1.equals(def2));
}
public void testGetMostSelectiveMatchingIndexMostSelective() throws IOException {
String json = TestHelpers.readFileToString(this.getClass(), "CObjectCQLGeneratorTestData.js");
CDefinition definition = CDefinition.fromJsonString(json);
SortedMap<String, Object> indexValues = new TreeMap<String, Object>();
indexValues.put("type", "typeValue");
indexValues.put("foreignid", 13);
indexValues.put("instance", 11);
CIndex matchingIndex = definition.getMostSelectiveMatchingIndex(indexValues);
String expectedIndexKey = Joiner.on(":").join(indexValues.keySet());
assertEquals(expectedIndexKey, matchingIndex.getKey());
}