}
@Then("New credentials will be added")
public void thenNewCredentialsWillBeCreated() throws IOException {
Credentials actualCredentials = request.getResponseObject(AddCredentialsResponse.class).getCredentials();
Assert.assertTrue(findCredentialsById(actualCredentials.getId(), String.valueOf(newCredentials.getProjectId())),
"ERROR: New credentials was not found");
Assert.assertEquals(actualCredentials.getPairName(), newCredentials.getPairName());
Assert.assertEquals(actualCredentials.getCloudProvider(), newCredentials.getCloudProvider());
Assert.assertEquals(actualCredentials.getIdentity(), newCredentials.getIdentity());
Assert.assertEquals(actualCredentials.getProjectId(), newCredentials.getProjectId());
}