def pipeSeparated = "blue|red|green|orange|yellow"
def colors = pipeSeparated.split("|")
assert colors.size() == 5
/*
Caught: Assertion failed:
assert colors.size() == 5
| | |
| 28 false
[b, l, u, e, |, r, e, d, |, g, r, e, e, n, |, o, r, a, n, g, e, |, y, e, l, l, o, w]
*/