DataServiceContext implements Context { @Override public DataServiceDelegate getDataServiceDelegate() { return DataServiceDelegate.withDefaultSpoonInstance( this ); } DataServiceContext( List<PushDownFactory> pushDownFactories,
                             List<AutoOptimizationService> autoOptimizationServices,
                             PentahoCacheManager cacheManager, UIFactory uiFactory, LogChannelInterface logChannel ); @VisibleForTesting protected  DataServiceContext( List<PushDownFactory> pushDownFactories,
                                List<AutoOptimizationService> autoOptimizationServices,
                                PentahoCacheManager cacheManager, DataServiceMetaStoreUtil metaStoreUtil,
                                UIFactory uiFactory, LogChannelInterface logChannel ); @Override PentahoCacheManager getCacheManager(); @Override DataServiceMetaStoreUtil getMetaStoreUtil(); @Override List<AutoOptimizationService> getAutoOptimizationServices(); @Override List<PushDownFactory> getPushDownFactories(); @Override LogChannelInterface getLogChannel(); @Override UIFactory getUIFactory(); @Override DataServiceDelegate getDataServiceDelegate(); @Override void addExecutor( DataServiceExecutor executor ); @Override DataServiceExecutor getExecutor( String id ); @Override void removeExecutor( String id ); @Override void addServiceTransExecutor( final StreamingServiceTransExecutor serviceExecutor ); @Override StreamingServiceTransExecutor getServiceTransExecutor( StreamServiceKey key ); @Override void removeServiceTransExecutor( StreamServiceKey key ); @Override void removeServiceTransExecutor( String dataServiceName ); @Override StreamingGeneratedTransExecution getStreamingGeneratedTransExecution( String key ); @Override void addStreamingGeneratedTransExecution( String key,
                                                   StreamingGeneratedTransExecution streamingGeneratedTransExecution ); @Override void removeStreamingGeneratedTransExecution( String key );  }
@Test public void testGetDataServiceDelegate() throws Exception { assertThat( context.getDataServiceDelegate(), validMetaStoreUtil() ); }