@Test
public void shouldCopyWithDefaultParameters() throws Exception {

    // given
    final Folder folder = folderRepository.addFolder(home.getId(), "yet_another_folder");
    final String originalId =
            clientTest.createPreparation(createTestPreparation("prep_1", "1234"), folder.getId()).getId();
    final Folder toFolder = folderRepository.addFolder(home.getId(), "to");
    // when
    final Response response = given() //
            .queryParam("destination", toFolder.getId()) //
            .when() //
            .expect()
            .statusCode(200)
            .log()
            .ifError() //
            .post("/preparations/{id}/copy", originalId);
    final String copyId = response.asString();
    // then
    assertThat(response.getStatusCode(), is(200));
    final Iterator<FolderEntry> iterator;
    try (Stream<FolderEntry> folderEntriesStream = folderRepository.entries(toFolder.getId(), PREPARATION)) {
        iterator = folderEntriesStream.iterator();
        boolean found = false;
        while (iterator.hasNext()) {
            final FolderEntry entry = iterator.next();
            if (entry.getContentId().equals(copyId)) {
                found = true;
                assertEquals("prep_1 copy", repository.get(entry.getContentId(), Preparation.class).getName());
            }
        }
        assertTrue(found);
    }
}