/**
* Creates mock to catch TestKit calls.
*/
private static SwitchYardTestKit createMockTestKit() {
HashSet<TestMixIn> mixins = new HashSet<TestMixIn>(Arrays.<TestMixIn>asList(transactionMixIn));
SwitchYardTestKit testKitMock = mock(SwitchYardTestKit.class);
when(testKitMock.getOptionalDependencies(any(CDIMixIn.class))).thenReturn(mixins);
return testKitMock;
}