}
}
@Test public void addRwAndRemoveUserTest() throws IOException, InterruptedException {
Client adminClient = createClient();
adminClient.addFilter(new HTTPBasicAuthFilter("neo4j", "master"));
MultivaluedMap<String, String> formData = new MultivaluedMapImpl();
formData.add("user", "test:pass");
assertEquals("OK", adminClient.resource("http://localhost:7474/admin/add-user-rw").post(String.class, formData));
Client client = createClient();
client.addFilter(new HTTPBasicAuthFilter("test", "pass"));
client.resource("http://localhost:7474/").accept("application/json").get(String.class);
client.resource("http://localhost:7474/db/data").get(String.class);
client.resource("http://localhost:7474/db/data/node").post(String.class);