1. stringjoin expectList=[1,2,3,4,5] expectList.stream().map(status -> status.int()).collect(Collectors.joining(","))