ApiConfigLoader { public ApiConfig loadInternalConfiguration(ServiceContext serviceContext, Class<?> endpointClass) throws ApiConfigException { ApiConfig config = configFactory.create(serviceContext, typeLoader, endpointClass); config.setName(INTERNAL_API_NAME); annotationSource.loadEndpointMethods( serviceContext, endpointClass, config.getApiClassConfig().getMethods()); return config; } ApiConfigLoader(ApiConfig.Factory configFactory, TypeLoader typeLoader,
      ApiConfigAnnotationReader annotationSource, ApiConfigSource... apiConfigSources);  ApiConfigLoader(); ApiConfig loadConfiguration(ServiceContext serviceContext, Class<?> endpointClass); ApiConfig loadInternalConfiguration(ServiceContext serviceContext,
      Class<?> endpointClass); boolean isStaticConfig(ApiConfig config); ApiConfig reloadConfiguration(ServiceContext serviceContext, Class<?> endpointClass,
      ApiConfig oldConfig); static final String INTERNAL_API_NAME; }
@Test public void testLoadInternalConfiguration() throws Exception { assertEquals(config, loader.loadInternalConfiguration(serviceContext, endpointClass)); Mockito.verify(config).setName(ApiConfigLoader.INTERNAL_API_NAME); Mockito.verify(annotationSource).loadEndpointMethods(serviceContext, endpointClass, methodsMap); Mockito.verifyNoMoreInteractions(annotationSource, datastoreSource); }