   @Test
   public void shouldNotAddHeadersWhenNotEnabled() {

      when(corsConfiguration.isEnabled()).thenReturn(false);

      corsFilter.doFilter(null, response);

      verify(response, never()).addHeader(anyString(), anyString());
   }