Class up function mocking a bit