### Question:
ProjectEvent { public void setParameter(final String key, final String value) { notNull(key, "parameter key"); notNull(value, "parameter value"); parameters.put(key, value); } ProjectEvent(final String type);  ProjectEvent(final String type, final Map<String, String> parameters); void setParameter(final String key, final String value); @JsonProperty("type") String getType(); @JsonProperty("parameters") Map<String, String> getParameters(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final String URI; }### Answer:
@Test public void testSerialization() { final ProjectEvent projectEvent = new ProjectEvent("etl.test"); projectEvent.setParameter("text", "cool"); assertThat(projectEvent, jsonEquals(resource("notification/projectEvent.json"))); }