public static String formatExpression(final Expression expression) {
    return formatExpression(expression, FormatOptions.of(s -> false));
  }
@Test
  public void shouldFormatCastToStruct() {
    // Given:
    final Cast cast = new Cast(
        new StringLiteral("foo"),
        new Type(SqlStruct.builder()
            .field("field", SqlTypes.STRING).build())
    );

    // When:
    final String result = ExpressionFormatter.formatExpression(cast, FormatOptions.none());

    // Then:
    assertThat(result, equalTo("CAST('foo' AS STRUCT<`field` STRING>)"));
  }