@Test
public void onePosAndRemainingWithPickingSet() {

    final String NAME = "coalesce";
    TestGetBase coalesce = new TestGetBase(NAME, TVARCHAR);
    coalesce.builder().pickingVararg(null, 0);
    new Initializer().overloads(coalesce).init();
    try {
        OverloadResolver.OverloadResult result = registry.getScalarsResolver().get(NAME, prepVals());
        fail("WrongArity expected but got: " + result);
    } catch(WrongExpressionArityException e) {
        // Expected
    }
    checkResolved(NAME + "(INT)", coalesce, NAME, prepVals(TINT));
    new Initializer().overloads(coalesce).casts(C_INT_BIGINT).types(TDATE).init();
    checkResolved(NAME+"(null,INT,BIGINT)", coalesce, NAME, prepVals(null, TINT, TBIGINT));
    try {
        checkResolved(NAME+"(null,DATE,INT)", coalesce, NAME, prepVals(null, TDATE, TINT));
        fail("expected overload exception");
    } catch (NoSuchCastException e) {
        // There is no common type between date and int
    }
}