@Test
    public void testOutOfOrder() {
        assertMetrics("outOfOrder:0","a","a");
        assertMetrics("outOfOrder:0","a b c","a b c");
        assertMetrics("outOfOrder:1","a b c","a c b");
        assertMetrics("outOfOrder:2","a b c","c b a");
        assertMetrics("outOfOrder:2","a b c d e","c x a b x x x x x e x x d");
        assertMetrics("outOfOrder:2","a b c d e","c x a b x x x x x e x x d");
        assertMetrics("outOfOrder:2", "a b c d e", "c x a b x x x x x e x x d");
    }
Tests of calculation of all the string match metrics.
Add true as the fourth parameter to assertMetrics to see a trace of what the test is doing.

@author bratseth
searchlib/src/test/java/com/yahoo/searchlib/ranking/features/fieldmatch/test/FieldMatchMetricsTestCase.java