@Test
public void testgetVolumesState() throws Exception{

    List<Volume> volumes = new ArrayList<Volume>();
    Volume volume = new Volume();
    volume.setVolumeId("123");
    volume.setState("attached");
    volumes.add(volume);
    PowerMockito.when(describeVolumesResult.getVolumes()).thenReturn(volumes);
    Map volumeState = ebsRaiderImplUnderTest.getVolumesState("123");
    Assert.assertNotNull(volumeState);
    Assert.assertEquals(volumeState.get("123"),"attached");
}