### Question:
AnalyticsClient implements JSONSerializable { public AnalyticsEvent createEvent(String eventType) { if (eventType == null) { log.error("Null eventType provided to addGlobalAttribute."); throw new IllegalArgumentException("The eventType passed into create event was null"); } if (eventType.length() > MAX_EVENT_TYPE_LENGTH) { log.error("The event type is too long, the max event type length is " + MAX_EVENT_TYPE_LENGTH + " characters."); throw new IllegalArgumentException("The eventType passed into create event was too long"); } return createEvent(eventType, sessionStartTime, null, null); } AnalyticsClient(final PinpointContext context); AnalyticsEvent createEvent(String eventType); void recordEvent(AnalyticsEvent event); void submitEvents(); void addGlobalAttribute(String attributeName,
                                   String attributeValue); void addGlobalAttribute(String eventType, String attributeName, String attributeValue); void addGlobalMetric(String metricName, Double metricValue); void addGlobalMetric(String eventType, String metricName,
                                Double metricValue); void removeGlobalAttribute(String attributeName); void removeGlobalAttribute(String eventType, String attributeName); void removeGlobalMetric(String metricName); void removeGlobalMetric(String eventType, String metricName); @Deprecated void setCampaignAttributes(Map<String, String> campaign); void updateEventSourceGlobally(final Map<String, String> attributes); @Override String toString(); @Override JSONObject toJSONObject(); void closeDB(); List<JSONObject> getAllEvents(); String getSessionId(); void setSessionId(String sessionId); long getSessionStartTime(); void setSessionStartTime(long sessionStartTime);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void createEvent_eventTypeTooLong_typeNameIsTruncated() { AnalyticsEvent e = target.createEvent( "123456789012345678901234567890123456789012345678901234567890"); }