@Test
public void testAddOverride() {

    final TreatmentOverrideRequest request = new TreatmentOverrideRequest("control", "qa", "qa_control");
    put(ENDPOINT_OVERRIDES, EXPERIMENT_BAD)
        .entity(request)
        .assertStatus(Status.NOT_FOUND);
    final TreatmentOverrideDto expected = new TreatmentOverrideDto(
        request.getName(),
        request.getFilter(),
        request.getTreatment()
    );
    put(ENDPOINT_OVERRIDES, EXPERIMENT_1)
        .entity(request)
        .assertStatus(Status.CREATED);
    final TreatmentOverrideDto actual = MAPPER.toDto(
        experiment(EXPERIMENT_1).getOverride(request.getName()),
        TreatmentOverrideDto.class
    );
    assertEquals(expected, actual);
}