@Test
public void testPost() {

	ObjectMapper mapper = new ObjectMapper();
	JsonNode node = mapper.createObjectNode()
			.put("name", "u2");
	Response response = client.target(Main.uri)
			.request(MediaType.APPLICATION_JSON)
			.post(Entity.entity(node, MediaType.APPLICATION_JSON));
	assertEquals(201, response.getStatus());
	assertEquals("http://localhost:8080/u2", response.getLocation().toString());
	WebTarget target = client.target(Main.uri + "u2");
	Resource resource = target.request(MediaType.APPLICATION_JSON).get(Resource.class);
	assertEquals(1, resource.getContents().size());
	EObject u1 = resource.getContents().get(0);
	assertEquals("User", u1.eClass().getName());
	assertEquals("u2", u1.eGet(u1.eClass().getEStructuralFeature("name")));
}