spoofing Scala classes like a champ