### Question:
AemEnvironmentIndicatorFilter implements Filter { boolean shouldUseColorCss(boolean alwaysInclude, String cssOverride, String color) { return alwaysInclude || StringUtils.isBlank(cssOverride) && StringUtils.isNotBlank(color); }  @Override void init(final FilterConfig filterConfig); @Override @SuppressWarnings("squid:S3776") final void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse,
                               final FilterChain filterChain); @Override void destroy(); @Property(label = "Color",
            description = "The color of the indicator bar; takes any valid value"
                    + " for CSS's 'background-color' attribute."
                    + " This is ignored if a Style Override is provided.",
            value = "")
    static final String PROP_COLOR; @Property(label = "CSS Override",
            description = "Accepts any valid CSS to style the AEM indicator div. All CSS rules must only be "
                    + "scoped to #" + DIV_ID + " { .. }",
            value = "")
    static final String PROP_CSS_OVERRIDE; @Property(label = "Inner HTML",
            description = "Any additional HTML required; Will be injected into a div with"
                    + " id='" + DIV_ID + "'",
            value = "")
    static final String PROP_INNER_HTML; @Property(label = "Always Include Base CSS",
        description = "Always include the base CSS scoped to #" + DIV_ID + " { .. }",
        boolValue = false)
    static final String PROP_ALWAYS_INCLUDE_BASE_CSS; @Property(label = "Always Include Color CSS",
        description = "Always include the color CSS scoped to #" + DIV_ID + " { .. }",
        boolValue = false)
    static final String PROP_ALWAYS_INCLUDE_COLOR_CSS; @Property(label = "Browser Title",
            description = "A prefix to add to the browser tab/window title; <THIS VALUE> | <ORIGINAL DOC TITLE>",
            value = DEFAULT_TITLE_PREFIX)
    static final String PROP_TITLE_PREFIX; @Property (label = "Excluded WCM modes",
            description = "Do not display the indicator when these WCM modes",
            cardinality = Integer.MAX_VALUE)
    static final String PROP_EXCLUDED_WCMMODES; }### Answer:
@Test public void testShouldWriteColorCss() { assertTrue(filter.shouldUseColorCss(true, null, null)); assertTrue(filter.shouldUseColorCss(false, "", "color")); assertFalse(filter.shouldUseColorCss(false, "", "")); assertFalse(filter.shouldUseColorCss(false, "css", "color")); }