public static SqlArgument of(final SqlType type) {
    return new SqlArgument(type, null, null);
  }
@Test
  public void shouldThrowIfAssigningTypeAndLambdaToSqlArgument() {
    final Exception e = assertThrows(
        RuntimeException.class,
        () -> SqlArgument.of(SqlTypes.STRING, (SqlLambdaResolved
            .of(ImmutableList.of(SqlTypes.STRING), SqlTypes.INTEGER)))
    );
    assertThat(e.getMessage(), containsString(
        "A function argument was assigned to be both a type and a lambda"));
  }