@Test
public void testDeleteExperiment() {

    client
        .createExperiment("exp")
        .apply();
    assertNotNull(client.getExperiment("exp"));
    client.deleteExperiment("exp");
    try {
        client.getExperiment("exp");
        fail("should have throw an exception");
    } catch (final WebApplicationException e) {
        assertEquals(Response.Status.NOT_FOUND.getStatusCode(), e.getResponse().getStatus());
    }
}