EBSRaiderImpl implements EBSRaider { public String attachEbsVolume(String instanceId, String deviceName, String volumeId) { AttachVolumeRequest attachRequest = new AttachVolumeRequest() .withInstanceId(instanceId).withDevice(deviceName) .withVolumeId(volumeId); AttachVolumeResult response = ec2Delegator.getEc2().attachVolume(attachRequest); return response.toString(); } EBSRaiderImpl(); String detachEbsVolume(String volumeId); String attachEbsVolume(String instanceId, String deviceName, String volumeId); Map getVolumesState(String... volumeIds); List<Volume> getVolumesForGivenInstanceId(String instanceId);  }
@Test public void testattachEbsVolume() throws Exception{ ebsRaiderImplUnderTest.attachEbsVolume("1234","root", "123"); }