@Test
public void testScaleDownForNonPrimaryInstanceType() {

    AgentInstanceGroup instanceGroup = createPartition("instanceGroup1", InstanceGroupLifecycleState.Active, "m4.16xlarge", 0, 12, 20);
    when(agentManagementService.getInstanceGroups()).thenReturn(singletonList(instanceGroup));
    List<AgentInstance> agentInstances = createAgents(12, "instanceGroup1", false);
    when(agentManagementService.getAgentInstances("instanceGroup1")).thenReturn(agentInstances);
    testScheduler.advanceTimeBy(6, TimeUnit.MINUTES);
    ClusterAgentAutoScaler clusterAgentAutoScaler = new ClusterAgentAutoScaler(titusRuntime, configuration,
            agentManagementService, v3JobOperations, schedulingService, testScheduler);
    clusterAgentAutoScaler.doAgentScaling().await();
    verify(agentManagementService, times(0)).updateAgentInstanceAttributes(any(), any());
}