@Override
  public int compareTo( MonetDbVersion mDbVersion ) {
    int result = majorVersion.compareTo( mDbVersion.majorVersion );
    if ( result != 0 ) {
      return result;
    }

    result = minorVersion.compareTo( mDbVersion.minorVersion );
    if ( result != 0 ) {
      return result;
    }

    result = patchVersion.compareTo( mDbVersion.patchVersion );
    if ( result != 0 ) {
      return result;
    }
    return result;
  }
@Test
  public void testCompareVersions_DiffInMajor() throws Exception {

    String dbVersionBigger = "786.5.3";
    String dbVersion = "785.2.2";
    assertEquals( 1, new MonetDbVersion( dbVersionBigger ).compareTo( new MonetDbVersion( dbVersion ) ) );
  }