@Test
public void shouldCopyDataset() throws Exception {

    // given
    final String originalId = testClient.createDataset("dataset/dataset.csv", "original");
    // when
    final Response response = given()
            .param("name", "copy") //
            .when() //
            .expect() //
            .statusCode(200) //
            .log() //
            .ifError() //
            .post("/api/datasets/{id}/copy", originalId);
    // then
    assertThat(response.getStatusCode(), is(200));
    String copyId = response.asString();
    assertNotNull(dataSetMetadataRepository.get(copyId));
}