func.exec(input, output);
assertTrue(output.strval().equals(expected));
// test schema creation
String fieldName = "field1";
AtomSchema fieldSchema = new AtomSchema(fieldName);
TupleSchema tupleSchema = new TupleSchema();
tupleSchema.add(fieldSchema, false);
Schema outSchema = func.outputSchema(tupleSchema);
assertTrue(outSchema.toString().equals("upper_" + fieldName));