SecuredResources { public Boolean contains(String resource) { return resources.contains(resource); } SecuredResources(Set<String> resources); Boolean contains(String resource);  }
@Test public void checkExistingResource() throws Exception { resources = new SecuredResources(Sets.newHashSet("/login","/register")); assertTrue(resources.contains("/register")); }
@Test public void checkNotExistingResource() throws Exception { resources = new SecuredResources(new HashSet<String>()); assertFalse(resources.contains("/login")); }