public static int compareObVersion(String version1, String version2) {
        if (version1 == null || version2 == null) {
            throw new RuntimeException("can not compare null version");
        }
        ObVersion v1 = new ObVersion(version1);
        ObVersion v2 = new ObVersion(version2);
        return v1.compareTo(v2);
    }
@Test
    public void compareObVersionTest() {
        assert ObReaderUtils.compareObVersion("2.2.70", "3.2.2") == -1;
        assert ObReaderUtils.compareObVersion("2.2.70", "2.2.50") == 1;
        assert ObReaderUtils.compareObVersion("2.2.70", "3.1.2") == -1;
        assert ObReaderUtils.compareObVersion("3.1.2", "3.1.2") == 0;
        assert ObReaderUtils.compareObVersion("3.2.3.0", "3.2.3.0") == 0;
        assert ObReaderUtils.compareObVersion("3.2.3.0-CE", "3.2.3.0") == 0;
    }