In case a UDF has no input parameter one has to create a dummy input Column to use the StandaloneMockContext, or the MockContext.