public static Object applyLogicalType(Schema.Field field, Object value) {
    if (field == null || field.schema() == null) {
      return value;
    }

    Schema fieldSchema = resolveUnionSchema(field.schema());
    return applySchemaTypeLogic(fieldSchema, value);
  }
@Test
  public void testApplyLogicalTypeReturnsSameValueWhenFieldIsNull() {
    String value = "d7738003-1472-4f63-b0f1-b5e69c8b93e9";

    Object result = AvroSchemaUtil.applyLogicalType(null, value);

    Assert.assertTrue(result instanceof String);
    Assert.assertSame(value, result);
  }