You don't test for args because of the timestamp that it uses. I see two ways out of that, 1) mock the timestamp method in logger so it gives a static output all the time for this test, or 2) at least check that the word "test" is at the end of the arguments for the message, the type of the parameter received, and may be some other things.