@Test(expected = OpenStackException.class)
public void testShouldDeployVMError() throws OpenStackException, IOException {

    // given
    String payload = "";
    String content = "<badRequest code=\"400\" xmlns=\"http://docs.openstack.org/compute/api/v1.1\">"
            + "<message>Invalid key_name provided.</message></badRequest>";
    when(openOperationUtil.executeNovaRequest(any(HttpUriRequest.class))).thenReturn(content);
    String response = openStackUtil.createServer(payload, "region", "token", "vdc");
    // then
    assertNotNull(response);
}