@Test
public void testListCompatiblePreparationsWhenTwoPreparationsAreCompatible() throws Exception {

    //
    final String dataSetId = testClient.createDataset("dataset/dataset.csv", "compatible1");
    final String dataSetId2 = testClient.createDataset("dataset/dataset.csv", "compatible2");
    testClient.createDataset("t-shirt_100.csv", "incompatible");
    final String prep1 = testClient.createPreparationFromDataset(dataSetId, "prep1", home.getId());
    final String prep2 = testClient.createPreparationFromDataset(dataSetId2, "prep2", home.getId());
    final String getResult = when().get("/api/datasets/{id}/compatiblepreparations", dataSetId).asString();
    final List<PreparationDTO> compatiblePreparations =
            mapper.readerFor(new TypeReference<Collection<PreparationDTO>>() {
            }).readValue(getResult);
    // then
    assertEquals(2, compatiblePreparations.size());
    assertEquals(prep2, compatiblePreparations.get(0).getId());
    assertEquals(prep1, compatiblePreparations.get(1).getId());
}