public void testDelete()
throws IOException, ExecutionException, InterruptedException
{
store.put("foo", new Person("foo@example.com", "Mr Foo"));
StatusResponse response = client.execute(
prepareDelete()
.setUri(uriFor("/v1/person/foo"))
.addHeader(CONTENT_TYPE, APPLICATION_JSON)
.build(),
createStatusResponseHandler());
assertEquals(response.getStatusCode(), javax.ws.rs.core.Response.Status.NO_CONTENT.getStatusCode());
assertNull(store.get("foo"));
assertEquals(eventClient.getEvents(), ImmutableList.of(
personAdded("foo", new Person("foo@example.com", "Mr Foo")),