@Test
public void testAddOverride() throws ValidationException {

    final Treatment treatment = new Treatment("bar");
    final TreatmentOverride override = new TreatmentOverride("override", FilterExpression.alwaysTrue(), treatment);
    final Experiment experiment =
        new Experiment(null, "foo")
            .addTreatment("bar")
            .addOverride("override", "bar", "true");
    assertEquals(treatment, experiment.getTreatments().get(0));
    assertEquals(override, experiment.getOverrides().get(0));
}