There is no contract in ProviderFinder.find() implementation yet. Adding a javadoc saying that it should return a sorted list and implementing it that way should be ok. If there would be any other assumption, you would see tests failing. I'm in favor of adding a test for each expectation. If there is no test, than there is no expectation.