PipelineService mockPipeline = mock(PipelineService.class);
when(mockPipeline.startNewPipeline(
any(Job2.class), any(SelectStatement.class), any(StatementContext.class)
)).thenReturn("key1").thenReturn("key2");
UserServiceDelegate mockUserService = mock(UserServiceDelegate.class);
when(mockUserService.getCurrentUser()).thenReturn(new User("testing@gmail.com", "google"));
EGQLServiceImpl service = new EGQLServiceImpl(logger, mockPipeline, mockUserService);
// testing data
String command = "select a, b, c from d \n select e, f, g from h";