@Test
public void testAddExperiment() {

    final CreateExperimentRequest request =
        new CreateExperimentRequest(
            "new_experiment",
            0,
            "it's new",
            null,
            null,
            false,
            Lists.newArrayList(
                new TreatmentDto("control", "the default"),
                new TreatmentDto("first_case", "the first case"),
                new TreatmentDto("second_case", "the second case")
            ),
            Lists.newArrayList(
                new AllocateRequest("control", 10),
                new AllocateRequest("first_case", 20),
                new AllocateRequest("second_case", 30)
            ),
            Lists.<TreatmentOverrideRequest>newArrayList()
        );
    assertNull(experiment("new_experiment"));
    put(EXPERIMENTS_ENDPOINT)
        .entity(request)
        .assertStatus(Status.CREATED);
    assertNotNull(experiment("new_experiment"));
}