DefaultJsonMetadata extends JsonMetadata { @Override public Optional<Long> version() { return getLong(metadata, VERSION_PATH); } private  DefaultJsonMetadata(final JsonObject metadata); static MetadataBuilder metadataBuilder(); static MetadataBuilder metadataBuilderFrom(final Metadata metadata); static MetadataBuilder metadataBuilderFrom(final JsonObject jsonObject); @Override UUID id(); @Override String name(); @Override Optional<String> clientCorrelationId(); @Override List<UUID> causation(); @Override Optional<String> userId(); @Override Optional<String> sessionId(); @Override Optional<UUID> streamId(); @Override Optional<Long> version(); @Override Optional<Long> position(); @Override JsonObject asJsonObject(); @Override Optional<ZonedDateTime> createdAt(); @Override Optional<String> source(); @Override Optional<Long> eventNumber(); @Override Optional<Long> previousEventNumber(); @Override @SuppressWarnings({"squid:MethodCyclomaticComplexity", "squid:S1067", "squid:S00122"}) boolean equals(final Object o); @Override int hashCode();  }
@Deprecated @Test public void shouldReturnStreamVersion() throws Exception { assertThat(metadata.version().isPresent(), is(true)); assertThat(metadata.version().get(), equalTo(STREAM_VERSION)); }