@Test
public void testGetAllocations() {

    client
        .createExperiment("exp")
        .addTreatment("control")
        .allocate("control", 50)
        .apply();
    final List<AllocationDto> allocations = client.getAllocations("exp");
    assertEquals(1, allocations.size());
    final AllocationDto allocation = allocations.get(0);
    assertEquals("control", allocation.getTreatment());
    assertEquals(50, allocation.getSize());
}