@Test
public void testAddTreatment() {

    final TreatmentDto expected = new TreatmentDto("new_treatment", "this is a new treatment");
    put(TREATMENTS_ENDPOINT, EXPERIMENT_BAD)
        .entity(expected)
        .assertStatus(Status.NOT_FOUND);
    put(TREATMENTS_ENDPOINT, EXPERIMENT_1)
        .entity(expected)
        .assertStatus(Status.CREATED);
    final TreatmentDto actual = MAPPER.toDto(experiment(EXPERIMENT_1).getTreatment(expected.getName()), TreatmentDto.class);
    assertEquals(expected, actual);
}