@Test
public void testParseBlankAllowedRefererInTheMiddle() {

    List<URI> uris = CsrfProtectionRefererFilter.parseAllowedReferers("http://my-site.com:45,,http://wherever.edu");
    assertEquals(2, uris.size());
    assertUri("http", "my-site.com", 45, uris.get(0));
    assertUri("http", "wherever.edu", -1, uris.get(1));
}