|  | @@ -10,11 +10,10 @@ import org.elasticsearch.cluster.AbstractDiffable;
 | 
	
		
			
				|  |  |  import org.elasticsearch.cluster.Diff;
 | 
	
		
			
				|  |  |  import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
 | 
	
		
			
				|  |  |  import org.elasticsearch.common.io.stream.Writeable;
 | 
	
		
			
				|  |  | -import org.elasticsearch.common.settings.Settings;
 | 
	
		
			
				|  |  |  import org.elasticsearch.common.xcontent.NamedXContentRegistry;
 | 
	
		
			
				|  |  |  import org.elasticsearch.common.xcontent.XContentParser;
 | 
	
		
			
				|  |  |  import org.elasticsearch.test.AbstractDiffableSerializationTestCase;
 | 
	
		
			
				|  |  | -import org.elasticsearch.xpack.autoscaling.Autoscaling;
 | 
	
		
			
				|  |  | +import org.elasticsearch.xpack.autoscaling.AutoscalingTestCase;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import static org.elasticsearch.xpack.autoscaling.AutoscalingTestCase.mutateAutoscalingPolicy;
 | 
	
		
			
				|  |  |  import static org.elasticsearch.xpack.autoscaling.AutoscalingTestCase.randomAutoscalingPolicyOfName;
 | 
	
	
		
			
				|  | @@ -25,12 +24,12 @@ public class AutoscalingPolicyMetadataDiffableSerializationTests extends Abstrac
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      protected NamedWriteableRegistry getNamedWriteableRegistry() {
 | 
	
		
			
				|  |  | -        return new NamedWriteableRegistry(new Autoscaling(Settings.EMPTY).getNamedWriteables());
 | 
	
		
			
				|  |  | +        return AutoscalingTestCase.getAutoscalingNamedWriteableRegistry();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      protected NamedXContentRegistry xContentRegistry() {
 | 
	
		
			
				|  |  | -        return new NamedXContentRegistry(new Autoscaling(Settings.EMPTY).getNamedXContent());
 | 
	
		
			
				|  |  | +        return AutoscalingTestCase.getAutoscalingXContentRegistry();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 |