unit test for Junit publisher