### Question:
DatabaseMetadata { public int getVersion() { return version; } @JsonCreator  DatabaseMetadata(@JsonProperty("version") final int version);  DatabaseMetadata(final int version, final Optional<Integer> privacyVersion);  DatabaseMetadata(final int version, final int privacyVersion); int getVersion(); @JsonSetter("privacyVersion") void setPrivacyVersion(final int privacyVersion); @JsonInclude(JsonInclude.Include.NON_NULL) @JsonGetter("privacyVersion") Integer getPrivacyVersion(); Optional<Integer> maybePrivacyVersion(); static DatabaseMetadata lookUpFrom(final Path dataDir); void writeToDirectory(final Path dataDir);  }### Answer:
@Test public void getVersion() { final DatabaseMetadata databaseMetadata = new DatabaseMetadata(42); assertThat(databaseMetadata).isNotNull(); assertThat(databaseMetadata.getVersion()).isEqualTo(42); }