private function verifyResponse(HttpResponse $response, $code, $data)
 {
     $this->assertEquals($code, $response->getCode());
     $this->assertEquals($data, json_decode($response->getContent(), true));
 }
 private function verifyNotEnoughPermission(HttpResponse $response)
 {
     $output = json_decode($response->getContent(), true);
     $this->assertEquals('Not enough permissions given to the current user/software.', $output['error']);
     $this->assertEquals(500, $response->getCode());
 }
 private function verifySoftwareInvalidPassword(HttpResponse $response)
 {
     $output = json_decode($response->getContent(), true);
     $this->assertEquals("The password inside the softwares Credentials object is invalid for the username: my_software", $output['error']);
     $this->assertEquals(500, $response->getCode());
 }