@@ -0,0 +1,1530 @@
+/*%0A * Copyright 20127higherfrequencytrading.com%0A *%0A *  Licensed under the Apache License, Version 2.0 (the %22License%22);%0A *  you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *       http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *%0A */%0A%0Apackage net.openhft.affinity.impl;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class VersionHelperTest %7B%0A%0A    @Test%0A    public void isSameOrNewerTest() %7B%0A        final VersionHelper v0 = new VersionHelper(0,0,0);%0A        final VersionHelper v2_6 = new VersionHelper(2,6,0);%0A        final VersionHelper v4_1 = new VersionHelper(4,1,1);%0A        final VersionHelper v4_9 = new VersionHelper(4,9,0);%0A        final VersionHelper v9_9 = new VersionHelper(9,9,9);%0A%0A        VersionHelper%5B%5D versions = new VersionHelper%5B%5D %7B v0, v2_6, v4_1, v4_9, v9_9 %7D;%0A%0A        for (int i = 0; i %3C versions.length; i++) %7B%0A            for (int j = 0; j %3C versions.length; j++) %7B%0A                Assert.assertEquals(String.format(%22expected %25s.isSameOrNewer(%25s) to be %25b%22, versions%5Bi%5D, versions%5Bj%5D, i %3E= j),%0A                                    i %3E= j, versions%5Bi%5D.isSameOrNewer(versions%5Bj%5D));%0A            %7D%0A        %7D%0A    %7D%0A%0A%7D%0A

add VersionHelper unit test