@Test
public void testClearAllocations() {

    client
        .createExperiment("exp")
        .addTreatment("control")
        .allocate("control", 10)
        .apply();
    client.clearAllocations("exp");
    assertEquals(0, client.getAllocations("exp").size());
}