return " %$&+,/:;=?@<>#%".indexOf(ch) >= 0;
}
@Test
public void testActive() throws Exception {
RequestExecutor request;
String tempActiveScopeUri = BASE_SCOPES_URI + "/" + getClass().getCanonicalName() + "-testActive-"
+ System.currentTimeMillis() + "-active";
String tempInactiveScopeUri = BASE_SCOPES_URI + "/" + getClass().getCanonicalName() + "-testActive-"
+ System.currentTimeMillis() + "-inactive";
// Scopes should not be there
request = executor.execute(builder.buildGetRequest(tempActiveScopeUri).withHeader("Accept",
KRFormat.TURTLE));
request.assertStatus(404);
log.info("Request: " + tempActiveScopeUri + " (should return 404) ... DONE");
request = executor.execute(builder.buildGetRequest(tempInactiveScopeUri).withHeader("Accept",
KRFormat.TURTLE));
request.assertStatus(404);
log.info("Request: " + tempInactiveScopeUri + " (should return 404) ... DONE");
// Create scopes, only activate one
executor.execute(builder.buildOtherRequest(new HttpPut(builder.buildUrl(tempActiveScopeUri
+ "?activate=true"))));