def setUp(self):
        self.url = "localhost:9092"
        self.topic = "psutil-kafka-topic"

        self.producer = PsutilsKafkaProducer(self.url,
                                             self.topic,
                                             reportInterval=5)

        self.thread = threading.Thread(target=self.producer.start)
        self.thread.daemon = True