### Question:
AnalyticEventJsonSerializer implements JsonSerializer<AnalyticEvent> { @Override public JSONObject serialize(AnalyticEvent object) { throw new RuntimeException("Not supported"); }  AnalyticEvent deserialize(JSONObject response); @Override List<AnalyticEvent> deserialize(JSONArray data); @Override JSONObject serialize(AnalyticEvent object);  }### Answer:
@Test(expected = RuntimeException.class) public void serializeFailure() throws JSONException { analyticEventJsonSerializer.serialize(new AnalyticEvent()); }