@Test
public void testClearOverrides() throws ValidationException  {

    final Experiment experiment =
        new Experiment(null, "foo")
            .addTreatment("bar")
            .addOverride("override", "bar", "true");
    assertEquals(1, experiment.getTreatments().size());
    assertEquals(1, experiment.getOverrides().size());
    experiment.clearOverrides();
    assertEquals(1, experiment.getTreatments().size());
    assertEquals(0, experiment.getOverrides().size());
}