}
@Test
public void testCreateIscsiTargetFails() {
final String targetName = NexentaStorAppliance.getTargetName("volume1");
final CreateIscsiTargetRequestParams p = new CreateIscsiTargetRequestParams(targetName);
exception.expect(CloudRuntimeException.class);
exception.expectMessage("any exception");
when(client.execute(NmsResponse.class, "iscsitarget", "create_target", p)).thenThrow(new CloudRuntimeException("any exception"));
appliance.createIscsiTarget(targetName);
}