    @Test
    public void testScaleUpForNonPrimaryInstanceType() {

        AgentInstanceGroup instanceGroup = createPartition("instanceGroup1", InstanceGroupLifecycleState.Active, "m4.16xlarge", 0, 0, 10);
        when(agentManagementService.getInstanceGroups()).thenReturn(singletonList(instanceGroup));

        when(agentManagementService.getAgentInstances("instanceGroup1")).thenReturn(Collections.emptyList());
        when(agentManagementService.scaleUp(eq("instanceGroup1"), anyInt())).thenReturn(Completable.complete());

        testScheduler.advanceTimeBy(6, TimeUnit.MINUTES);

        ClusterAgentAutoScaler clusterAgentAutoScaler = new ClusterAgentAutoScaler(titusRuntime, configuration,
                agentManagementService, v3JobOperations, schedulingService, testScheduler);

        clusterAgentAutoScaler.doAgentScaling().await();

        verify(agentManagementService, times(0)).scaleUp(anyString(), anyInt());
    }