* The expected error code.
*/
public static void assertHasError(final AbiquoException exception, final Status expectedHttpStatus,
final String expectedErrorCode) {
assertEquals(exception.getHttpStatus(), expectedHttpStatus);
ErrorDto error = exception.findError(expectedErrorCode);
assertNotNull(error);
}