@Test
public void testTerminateEc2InstancesByIdArray() throws Exception{

    String[] instanceIds = new String[2];
    instanceIds[0]= "i-123";
    instanceIds[1] = "i-456";
    TerminateInstancesResult response = PowerMockito.mock(TerminateInstancesResult.class);
    TerminateInstancesRequest request = new TerminateInstancesRequest().withInstanceIds(instanceIds);
    PowerMockito.when(ec2Delegator.getEc2().terminateInstances(request)).thenReturn(response);
    ec2RaiderImplUnderTest.terminateEc2InstancesById(instanceIds);
}