public static SqlArgument of(final SqlType type) {
    return new SqlArgument(type, null, null);
  }
@Test
  public void shouldThrowWhenLambdaPresentWhenGettingType() {
    final SqlArgument argument = SqlArgument.of(null, (SqlLambdaResolved
        .of(ImmutableList.of(SqlTypes.STRING), SqlTypes.INTEGER)));

    final Exception e = assertThrows(
        RuntimeException.class,
        argument::getSqlTypeOrThrow
    );
    assertThat(e.getMessage(), containsString("Was expecting type as a function argument"));
  }