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());
}