Initial subcut integration with mocking and Mockito.

Hey James - here is the initial subcut stuff that actually works, with Mockito