@Test
public void testLoadSource() throws Exception {

  assertEquals(config, loader.loadConfiguration(serviceContext, endpointClass));
  Mockito.verify(annotationSource).loadEndpointClass(serviceContext, endpointClass, config);
  Mockito.verify(datastoreSource).loadEndpointClass(serviceContext, endpointClass, config);
  Mockito.verify(annotationSource).loadEndpointMethods(serviceContext, endpointClass, methodsMap);
  Mockito.verify(datastoreSource).loadEndpointMethods(serviceContext, endpointClass, methodsMap);
}