    @Test
    public void testParseCorsAllowedOrigins() throws Exception {

        FoCorsFilter filter = new FoCorsFilter();
        assertArrayEquals(new String[0], filter.parseCorsAllowedOrigins("  ").toArray());
        assertArrayEquals(new String[]{"http://foo.com", "https://bar.com:2018"},
                filter.parseCorsAllowedOrigins(" http://foo.com ; https://bar.com:2018 ").toArray());
        assertArrayEquals(new String[]{"*"}, filter.parseCorsAllowedOrigins(" * ").toArray());
    }