@Then("I expect that response with error message <variablesErrors> and compound error message <compoundServiceErrors> was returned")
@Aliases(values = { "I expect that response with error message $plainMessage and compound error message $compoundMessage was returned" })
public static void thenIExpectFailedRequestWithManyErrors(
@Named("variablesErrors") String variablesErrors, @Named("compoundServiceErrors") String compoundServiceErrors) {
CommonResultObjectResponse actResponse = request.getResponseObject(CommonResultObjectResponse.class);
CommonResultObjectResponse expResponse = CommonResultObjectResponse
.getResultFromString(false, false, "", variablesErrors,
compoundServiceErrors, "");
Assert.assertEquals(expResponse, actResponse);
Assert.assertEquals(request.checkStatusCode400(), true);
}