ResourceOptions { public ResourceOptions scope(String scope) { FeatureException.throwIfNull(scope, "Please provide a scope"); this.scope = scope; return this; }  ResourceOptions securityTokenProvider(AuthorizationProvider provider); ResourceOptions header(String name, Object value); ResourceOptions headers(Map<String, Object> headers); ResourceOptions scope(String scope); ResourceOptions group(String group); Map<String, Object> headers(); Optional<Authorization> supplyToken(); String scope(); String group();  }
@Test public void testScope() { ResourceOptions ro = new ResourceOptions(); try { ro.scope(null); fail(); } catch (Exception ignored) { } assertEquals("foo", ro.scope("foo").scope()); }