VisibilityEvaluator { public VisibilityEvaluator(final Authorisations auths) { this.auths = auths; } VisibilityEvaluator(final Authorisations auths); boolean evaluate(final ElementVisibility visibility); static byte[] escape(final byte[] auth, final boolean quote);  }
@Test public void testVisibilityEvaluator() throws VisibilityParseException { assertTrue(ve.evaluate(new ElementVisibility(new byte[0]))); assertTrue(ve.evaluate(new ElementVisibility("one&two")), "'and' test"); assertTrue(ve.evaluate(new ElementVisibility("foor|four")), "'or' test"); assertTrue(ve.evaluate(new ElementVisibility("(one&two)|(foo&bar)")), "'and' and 'or' test"); }