@@ -0,0 +1,1062 @@
+package org.sagebionetworks.bridge.play.interceptors;%0A%0Aimport static org.mockito.Mockito.verify;%0A%0Aimport java.util.Map;%0A%0Aimport org.aopalliance.intercept.MethodInvocation;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport org.sagebionetworks.bridge.TestUtils;%0A%0Aimport play.mvc.Http.Response;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class StaticHeadersInterceptorTest %7B%0A%0A    @Mock%0A    private MethodInvocation invocation;%0A    %0A    private StaticHeadersInterceptor interceptor;%0A    %0A    @Before%0A    public void before() %7B%0A        interceptor = new StaticHeadersInterceptor();%0A    %7D%0A    %0A    @Test%0A    public void addsHeaders() throws Throwable %7B%0A        Response response = TestUtils.mockPlayContext();%0A        %0A        interceptor.invoke(invocation);%0A        %0A        for (Map.Entry%3CString, String%3E entry : StaticHeadersInterceptor.HEADERS.entrySet()) %7B%0A            verify(response).setHeader(entry.getKey(), entry.getValue());    %0A        %7D%0A    %7D%0A%7D%0A

Test for StaticHeadersInterceptor