I thought I had avoided a problem by using mockito for the tests for eventProviderLocator - but the thing was taking a long time to execute - inexplicably - so I moved back to ScalaMock - however, it seems that some of the fanciness I was doing to abstract off of the MidiSystem was making scalamock unhappy - so I finally figured out what it didnt like and changed it