First we created a scalatest around the ugly Java code then we used the scalatest to re-build the production code from scratch then we cloned the scalatest to support the production code ported to scala next we are going to get rid of mutibles in the scala code.