public void testErrorCodeForApplicationException() throws Exception {
// prepare
String errorCode = "ErrorCode";
String message = "expected exception message";
Exception exception =
new ODataApplicationException(message, Locale.ENGLISH, HttpStatusCodes.INTERNAL_SERVER_ERROR, errorCode);
// execute
Response response = exceptionMapper.toResponse(exception);
// verify