two examples: testproducer and simplepartitioner