@@ -0,0 +1,616 @@
+package de.guderlei.pubsub.subscriber;%0A%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.only;%0Aimport static org.mockito.Mockito.verify;%0A%0Aimport org.junit.Test;%0Aimport org.osgi.service.log.LogService;%0A%0Aimport de.guderlei.pubsub.model.Message;%0A%0Apublic class SimpleSubscriberTest %7B%0A%09@Test%0A%09public void send_message()%7B%0A%09%09LogService log = mock(LogService.class);%0A%09%09%0A%09%09Message message = new Message(%22me%22, %22message%22);%0A%09%09SimpleSubscriber sub = new SimpleSubscriber();%0A%09%09sub.setLog(log);%0A%09%09%0A%09%09sub.receive(message);%0A%09%09verify(log, only()).log(LogService.LOG_INFO, %22SCR Subscriber: me: message%22);%0A%09%7D%0A%7D%0A

Test for scr subscriber