@@ -0,0 +1,2037 @@
+package net.kencochrane.raven.event.helper;%0A%0Aimport net.kencochrane.raven.event.EventBuilder;%0Aimport net.kencochrane.raven.event.interfaces.SentryInterface;%0Aimport net.kencochrane.raven.servlet.RavenServletRequestListener;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.ArgumentCaptor;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0A%0Aimport javax.servlet.ServletRequestEvent;%0Aimport javax.servlet.http.HttpServletRequest;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.hamcrest.Matchers.notNullValue;%0Aimport static org.mockito.Mockito.*;%0A%0Apublic class HttpEventBuilderHelperTest %7B%0A    @Mock%0A    private EventBuilder eventBuilder;%0A    private HttpEventBuilderHelper httpEventBuilderHelper;%0A%0A    private static void simulateRequest(HttpServletRequest request) %7B%0A        RavenServletRequestListener ravenServletRequestListener = new RavenServletRequestListener();%0A        ServletRequestEvent servletRequestEvent = mock(ServletRequestEvent.class);%0A        when(servletRequestEvent.getServletRequest()).thenReturn(request);%0A        ravenServletRequestListener.requestInitialized(servletRequestEvent);%0A    %7D%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        MockitoAnnotations.initMocks(this);%0A        httpEventBuilderHelper = new HttpEventBuilderHelper();%0A    %7D%0A%0A    @Test%0A    public void testNoRequest() throws Exception %7B%0A        httpEventBuilderHelper.helpBuildingEvent(eventBuilder);%0A%0A        verify(eventBuilder, never()).addSentryInterface(any(SentryInterface.class));%0A    %7D%0A%0A    @Test%0A    public void testWithRequest() throws Exception %7B%0A        simulateRequest(mock(HttpServletRequest.class));%0A        ArgumentCaptor%3CSentryInterface%3E interfaceCaptor = ArgumentCaptor.forClass(SentryInterface.class);%0A%0A        httpEventBuilderHelper.helpBuildingEvent(eventBuilder);%0A%0A        verify(eventBuilder).addSentryInterface(interfaceCaptor.capture());%0A        assertThat(interfaceCaptor.getValue(), is(notNullValue()));%0A    %7D%0A%7D%0A

Add unit tests to check HttpEventBuilderHelper