LeftTupleSource leftTupleSource = (LeftTupleSource) context.get( leftInput );
LeftTupleSink mockedSink = Mockito.mock( LeftTupleSink.class,
Mockito.withSettings().extraInterfaces( DSLMock.class ) );
Mockito.when( mockedSink.createLeftTuple( (InternalFactHandle) anyObject(), (LeftTupleSink) anyObject(), anyBoolean() ) ).thenAnswer( new Answer() {
public Object answer(InvocationOnMock invocation) throws Throwable {
Object[] args = invocation.getArguments();
return new LeftTupleImpl((InternalFactHandle)args[0], (LeftTupleSink)args[1], ((Boolean)args[2]).booleanValue() );
}