@Override
  public void init(DatabaseMetaData metaData) throws SQLException {
    checkState(!initialized, "onInit() must be called once");

    Version version = checkDbVersion(metaData, MIN_SUPPORTED_VERSION);

    supportsNullNotDistinct = version.compareTo(MIN_NULL_NOT_DISTINCT_VERSION) >= 0;

    initialized = true;
  }
@Test
  void postgresql_9_2_is_not_supported() {
    assertThatThrownBy(() -> {
      DatabaseMetaData metadata = newMetadata(9, 2);
      underTest.init(metadata);
    })
      .isInstanceOf(MessageException.class)
      .hasMessage("Unsupported postgresql version: 9.2. Minimal supported version is 11.0.");
  }