WebComponent implements Serializable { public void fireEvent(String eventName) { fireEvent(eventName, Json.createNull(), BASIC_OPTIONS); } private  WebComponent();  WebComponent(WebComponentBinding binding,
                        Element componentHost); void fireEvent(String eventName); void fireEvent(String eventName, JsonValue objectData); void fireEvent(String eventName, JsonValue objectData, EventOptions options); @SuppressWarnings("unchecked") void setProperty(PropertyConfiguration<C, P> propertyConfiguration, P value);  }
@Test public void fireEvent_throwsWhenNameIsNull() { exception.expect(NullPointerException.class); exception.expectMessage("eventName"); webComponent.fireEvent(null); }
@Test public void fireEvent_doesNotThrowOnNullObjectData() { webComponent.fireEvent("name", null); }
@Test public void fireEvent_throwsWhenOptionsIsNull() { exception.expect(NullPointerException.class); exception.expectMessage("options"); webComponent.fireEvent("name", null, null); }