MediaInfoDocumentImpl extends LabeledStatementDocumentImpl implements MediaInfoDocument { @Override public MediaInfoDocument withRevisionId(long newRevisionId) { return new MediaInfoDocumentImpl(getEntityId(), labels, claims, newRevisionId); } MediaInfoDocumentImpl(
			MediaInfoIdValue id,
			List<MonolingualTextValue> labels,
			List<StatementGroup> statements,
			long revisionId); @JsonCreator  MediaInfoDocumentImpl(
			@JsonProperty("id") String jsonId,
			@JsonProperty("labels") @JsonDeserialize(contentAs=TermImpl.class) Map<String, MonolingualTextValue> labels,
			@JsonProperty("claims") Map<String, List<StatementImpl.PreStatement>> claims,
			@JsonProperty("statements") Map<String, List<StatementImpl.PreStatement>> statements,
			@JsonProperty("lastrevid") long revisionId,
			@JacksonInject("siteIri") String siteIri); protected  MediaInfoDocumentImpl(
			MediaInfoIdValue subject,
			Map<String, MonolingualTextValue> labels,
			Map<String, List<Statement>> claims,
			long revisionId); @JsonIgnore @Override MediaInfoIdValue getEntityId(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override MediaInfoDocument withRevisionId(long newRevisionId); @Override MediaInfoDocument withLabel(MonolingualTextValue newLabel); @Override MediaInfoDocument withStatement(Statement statement); @Override MediaInfoDocument withoutStatementIds(Set<String> statementIds);  }
@Test public void testWithRevisionId() { assertEquals(1235L, mi1.withRevisionId(1235L).getRevisionId()); assertEquals(mi1, mi1.withRevisionId(1325L).withRevisionId(mi1.getRevisionId())); }