@@ -0,0 +1,1159 @@
+package com.semation.jstatsd.server.messaging.disruptor;%0A%0Aimport com.semation.jstatsd.StatsMessage;%0Aimport com.semation.jstatsd.server.messaging.StatsMessageParser;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.easymock.EasyMock.*;%0Aimport static org.junit.Assert.assertSame;%0A%0A/**%0A * Created by IntelliJ IDEA.%0A * User: jabourbih%0A * Date: 09/04/2012%0A * Time: 15:22%0A */%0Apublic class StatsMessageEventTranslatorTest %7B%0A    StatsMessageEventTranslator translator;%0A    StatsMessageParser parserMock;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        parserMock = createMock(StatsMessageParser.class);%0A        translator = new StatsMessageEventTranslator(parserMock);%0A    %7D%0A%0A    @Test%0A    public void testTranslateTo() throws Exception %7B%0A        StatsMessage message = new StatsMessage();%0A        String messageString = %22Foo Bar%22;%0A%0A        translator.setMessage(messageString);%0A%0A        expect(parserMock.parse(messageString, message)).andReturn(message);%0A        replay(parserMock);%0A        StatsMessage outMessage = translator.translateTo(message, 0L);%0A        verify(parserMock);%0A        assertSame(message, outMessage);%0A    %7D%0A%7D%0A

Add unit test for event translator