example using a trait instead of mockito

...which only works for own classes (dependencies), not for libraries