@Override
  public SchemaResult getValueSchema(
      final Optional<String> topicName,
      final Optional<Integer> schemaId,
      final FormatInfo expectedFormat,
      final SerdeFeatures serdeFeatures
  ) {
    return getSchema(topicName, schemaId, expectedFormat, serdeFeatures, false);
  }
@Test
  public void shouldReturnErrorFromGetValueSchemaIfSchemaIsNotInExpectedFormat() {
    // Given:
    when(parsedSchema.schemaType()).thenReturn(ProtobufSchema.TYPE);

    // When:
    final SchemaResult result = supplier.getValueSchema(Optional.of(TOPIC_NAME),
        Optional.empty(), expectedFormat, SerdeFeatures.of());

    // Then:
    assertThat(result.schemaAndId, is(Optional.empty()));
    assertThat(result.failureReason, is(not(Optional.empty())));
    assertThat(result.failureReason.get().getMessage(), is(
        "Value schema is not in the expected format. "
            + "You may want to set VALUE_FORMAT to 'PROTOBUF'."
            + System.lineSeparator()
            + "topic: " + TOPIC_NAME
            + System.lineSeparator()
            + "expected format: AVRO"
            + System.lineSeparator()
            + "actual format from Schema Registry: PROTOBUF"
    ));
  }