In OrderAwarePluginRegistryUnitTest.assertOrder there is a for loop to assert that results are in correct order but the code compares items from the same list
for (int i = 0; i < plugins.length; i++) {
assertThat(result.get(i), is(result.get(i)));
}
but I think it the assertion should be assertThat(result.get(i), is(plugins[i]));
In OrderAwarePluginRegistryUnitTest.assertOrder there is a for loop to assert that results are in correct order but the code compares items from the same list
but I think it the assertion should be
assertThat(result.get(i), is(plugins[i]));