DefaultJsonEnvelopeProvider implements JsonEnvelopeProvider { @Override public MetadataBuilder metadataBuilder() { return DefaultJsonMetadata.metadataBuilder(); }  @Override JsonEnvelope envelopeFrom(final Metadata metadata, final JsonValue payload); @Override JsonEnvelope envelopeFrom(final MetadataBuilder metadataBuilder, final JsonValue payload); @Override JsonEnvelope envelopeFrom(final MetadataBuilder metadataBuilder, final JsonObjectBuilder payloadBuilder); @Override MetadataBuilder metadataBuilder(); @Override MetadataBuilder metadataFrom(final Metadata metadata); @Override MetadataBuilder metadataFrom(final JsonObject jsonObject);  }
@Test public void shouldProvideJsonObjectMetadataBuilder() throws Exception { final MetadataBuilder metadataBuilder = new DefaultJsonEnvelopeProvider().metadataBuilder(); assertThat(metadataBuilder, instanceOf(DefaultJsonMetadata.Builder.class)); }