### Question:
AllianceSelectionNotification extends BaseNotification<AllianceSelectionNotificationViewModel> { @Override public void parseMessageData() throws JsonParseException { JsonObject jsonData = JSONHelper.getasJsonObject(messageData); if (!jsonData.has("event")) { throw new JsonParseException("Notification data does not have an 'event' object"); } event = gson.fromJson(jsonData.get("event"), Event.class); eventKey = event.getKey(); } AllianceSelectionNotification(String messageData, EventWriter writer); Event getEvent(); String getEventKey(); @Override void parseMessageData(); @Override Notification buildNotification(Context context, FollowsChecker followsChecker); @Override Intent getIntent(Context context); @Override void updateDataLocally(); @Override int getNotificationId(); @Override View getView(Context c, LayoutInflater inflater, View convertView); @Nullable @Override AllianceSelectionNotificationViewModel renderToViewModel(Context context, @Nullable Void aVoid);  }### Answer:
@Test(expected = JsonParseException.class) public void testNoEvent() { mData.remove("event"); mNotification = new AllianceSelectionNotification(mData.toString(), mWriter); mNotification.parseMessageData(); }