}});
mappedDetails.filter(HelperUtil.toClosure("{ 'PREFIX: ' + it } "));
ByteArrayOutputStream outstr = new ByteArrayOutputStream();
mappedDetails.copyTo(outstr);
assertThat(new String(outstr.toByteArray()), equalTo("PREFIX: content"));
}
@Test
public void copyActionCanFilterContentWhenFileIsCopiedToFile() {