@Override
  public ParsedSchema fromConnectSchema(final Schema schema) {
    // Bug in ProtobufData means `fromConnectSchema` throws on the second invocation if using
    // default naming.
    return new ProtobufData(new ProtobufDataConfig(updatedConfigs))
        .fromConnectSchema(injectSchemaFullName(schema));
  }
@Test
  public void shouldApplyNullableAsOptional() {
    // Given:
    givenNullableAsOptional();

    // When:
    final ParsedSchema schema = schemaTranslator.fromConnectSchema(CONNECT_SCHEMA_WITH_NULLABLE_PRIMITIVES);

    // Then:
    assertThat(schema.canonicalString(), is("syntax = \"proto3\";\n"
        + "\n"
        + "message ConnectDefault1 {\n"
        + "  optional int32 optional_int32 = 1 [deprecated = false];\n"
        + "  optional bool optional_boolean = 2 [deprecated = false];\n"
        + "  optional string optional_string = 3 [deprecated = false];\n"
        + "}\n"));
  }