From the O'Reilly Testing Scala book