@Test public void testIsSourceConnectionAllowed() { assertTrue(isSourceConnectionAllowed(permittedConnections, new HashSet<String>(1) {{ add(ROLE1); }})); assertTrue(isSourceConnectionAllowed(permittedConnections, new HashSet<String>(1) {{ add(ROLE2); }})); assertFalse(isSourceConnectionAllowed(permittedConnections, new HashSet<String>(1) {{ add(ROLE3); }})); }