@Test
public void testShouldAddExtraInstance() throws Exception {

    when(deployConfiguration.getMaxCapacity()).thenReturn(4);
    when(autoScalingGroup.getMaxSize()).thenReturn(4);
    when(instances.size()).thenReturn(1);
    when(autoScalingGroup.getInstances()).thenReturn(instances);
    AwsAutoScalingDeployUtils utils = new AwsAutoScalingDeployUtils("eu-west-1", deployConfiguration, null);
    Assert.assertTrue(utils.shouldAddExtraInstance(autoScalingGroup));
}