introduce scala mock and mokito
add plan
fix errors after upgrade