.mockPostApplicationEvent(
"foobarz", "springeap6", POST_STOP_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_EVENT)
.mockPostApplicationEvent(
"foobarz",
"springeap6",
new InternalServerErrorException(
"Failed to add event scale-up to application springeap6 due to: Cannot scale a non-scalable application"));
final IApplication app = domain.getApplicationByName("springeap6");
// operation
try {