public static SqlArgument of(final SqlType type) {
    return new SqlArgument(type, null, null);
  }
@Test
  public void shouldThrowWhenTypePresentWhenGettingLambda() {
    final SqlArgument argument = SqlArgument.of(SqlTypes.STRING, null);
    final Exception e = assertThrows(
        RuntimeException.class,
        argument::getSqlLambdaOrThrow
    );

    assertThat(e.getMessage(), containsString("Was expecting lambda as a function argument"));
  }