@Test
public void testAddTreatment() {

    client
        .createExperiment("exp")
        .apply();
    client.addTreatment("exp", "control", "the control");
    final TreatmentDto treatment = client.getTreatment("exp", "control");
    assertEquals("control", treatment.getName());
    assertEquals("the control", treatment.getDescription());
    client.addTreatment("exp", "control");
    final TreatmentDto treatment2 = client.getTreatment("exp", "control");
    assertEquals("control", treatment2.getName());
    assertNull(treatment2.getDescription());
}