@Test
public void testTerminateEc2InstancesByIds() throws Exception{

    List<String> instanceIds = new ArrayList<>();
    instanceIds.add("i-123");
    instanceIds.add("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);
}