@Test(groups = { "unit" }, expectedExceptions = IllegalArgumentException.class)

public void nonSortedRanges() {
    RoutingMapProviderHelper.getOverlappingRanges(ROUTING_MAP_PROVIDER, "dbs/db1/colls/coll1",
            Arrays.asList(new Range<String>("0B", "0B", true, true), new Range<String>("0A", "0A", true, true)));
}