@Test
public void testDeallocateAll()  throws ValidationException {

    final Experiment experiment =
        new Experiment(null, "foo")
            .addTreatment("bar")
            .allocate("bar", 10);
    assertEquals(1, experiment.getTreatments().size());
    assertEquals(1, experiment.getAllocations().size());
    experiment.deallocateAll();
    assertEquals(1, experiment.getTreatments().size());
    assertEquals(0, experiment.getAllocations().size());
}