InstancesRepositoryImpl implements InstancesRepository { @Override public Set<String> suspendInstances(Collection<String> instanceIds) { return executeAction( (apiProvider, ids) -> apiProvider.getInstancesApi().suspend(ids), instanceIds ); }  @Override List<FindInstancesResult> findInstances(FindInstancesRequest findInstancesRequest); @Override Map<String, Map<String, String>> getInstancesMetadata(FindInstancesRequest findInstancesRequest); @Override Set<String> addInstances(List<Instance> instances); @Override Set<String> startInstances(Collection<String> instanceIds); @Override Set<String> shutdownInstances(Collection<String> instanceIds); @Override Set<String> deleteInstances(Collection<String> instanceIds); @Override Set<String> renameInstances(Map<String, String> newNames); @Override Set<String> rebootInstances(Collection<String> instanceIds); @Override Set<String> rebuildInstances(String imageId, Collection<String> instanceIds); @Override Set<String> resizeInstances(String flavorId, Collection<String> instanceIds); @Override Set<String> pauseInstances(Collection<String> instanceIds); @Override Set<String> resumeInstances(Collection<String> instanceIds); @Override Set<String> suspendInstances(Collection<String> instanceIds); @Override Set<String> hardRebootInstances(Collection<String> instanceIds);  }
@Test public void testSuspendInstances() { testModificationOperation(instancesRepository::suspendInstances); }