@Test
public void testReloadConfiguration() throws Exception {

  Mockito.when(datastoreSource.isStaticConfig(config2)).thenReturn(false);
  assertSame(config2, loader.reloadConfiguration(serviceContext, endpointClass, config));
  Mockito.verify(annotationSource, never()).loadEndpointClass(
      serviceContext, endpointClass, config2);
  Mockito.verify(annotationSource, never()).loadEndpointMethods(
      serviceContext, endpointClass, methodsMap);
  Mockito.verify(datastoreSource).loadEndpointClass(serviceContext, endpointClass, config2);
  Mockito.verify(datastoreSource).loadEndpointMethods(serviceContext, endpointClass, methodsMap);
}