@@ -0,0 +1,2032 @@
+package co.codesharp.jwampsharp.client;%0A%0Aimport static org.mockito.Mockito.verify;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0A%0Aimport co.codesharp.jwampsharp.core.message.WampMessageType;%0A%0Apublic class TestErrorForwarder %7B%0A%0A    private final static long REQUEST_ID = 33;%0A    private final static String ERROR = %22error%22;%0A    private TMessage details = new TMessage();%0A%0A    @Mock%0A    DefaultWampClient client;%0A    private ErrorForwarder errorForwarder;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        MockitoAnnotations.initMocks(this);%0A        errorForwarder = new ErrorForwarder(client);%0A    %7D%0A%0A    @Test%0A    public void testRegisterError() %7B%0A        errorForwarder.error(WampMessageType.REGISTER, REQUEST_ID, details,%0A                ERROR);%0A        verify(client).registerError(REQUEST_ID, details, ERROR);%0A    %7D%0A%0A    @Test%0A    public void testUnregisterError() %7B%0A        errorForwarder.error(WampMessageType.UNREGISTER, REQUEST_ID, details,%0A                ERROR);%0A        verify(client).unregisterError(REQUEST_ID, details, ERROR);%0A    %7D%0A%0A    @Test%0A    public void testCallError() %7B%0A        errorForwarder.error(WampMessageType.CALL, REQUEST_ID, details, ERROR);%0A        verify(client).callError(REQUEST_ID, details, ERROR);%0A    %7D%0A%0A    @Test%0A    public void testSubscribeError() %7B%0A        errorForwarder.error(WampMessageType.SUBSCRIBE, REQUEST_ID, details,%0A                ERROR);%0A        verify(client).subscribeError(REQUEST_ID, details, ERROR);%0A    %7D%0A%0A    @Test%0A    public void testUnsubscribeError() %7B%0A        errorForwarder.error(WampMessageType.UNSUBSCRIBE, REQUEST_ID, details,%0A                ERROR);%0A        verify(client).unsubscribeError(REQUEST_ID, details, ERROR);%0A    %7D%0A%0A    @Test%0A    public void testPublishError() %7B%0A        errorForwarder.error(WampMessageType.PUBLISH, REQUEST_ID, details,%0A                ERROR);%0A        verify(client).publishError(REQUEST_ID, details, ERROR);%0A    %7D%0A%0A    private class TMessage %7B%0A    %7D%0A%0A%7D%0A

Add unit-test for ErrorForwarder