@Test void testSerialization() { when(mockEvent.getIdentifier()).thenReturn(rdf.createIRI("info:event/12345")); when(mockEvent.getTypes()).thenReturn(singleton(Create)); when(mockEvent.getAgents()).thenReturn(singleton(rdf.createIRI("info:user/test"))); when(mockEvent.getObject()).thenReturn(of(rdf.createIRI("trellis:data/resource"))); when(mockEvent.getObjectTypes()).thenReturn(singleton(Container)); when(mockEvent.getInbox()).thenReturn(of(rdf.createIRI("info:ldn/inbox"))); when(mockEvent.getCreated()).thenReturn(time); final String json = svc.serialize(mockEvent); assertTrue(json.contains("\"inbox\":\"info:ldn/inbox\""), "ldp:inbox not in serialization!"); }
@Override public String serialize(final Event event) { return jsonb.toJson(ActivityStreamMessage.from(event)); }
DefaultEventSerializationService implements EventSerializationService { @Override public String serialize(final Event event) { return jsonb.toJson(ActivityStreamMessage.from(event)); } }
DefaultEventSerializationService implements EventSerializationService { @Override public String serialize(final Event event) { return jsonb.toJson(ActivityStreamMessage.from(event)); }  }
DefaultEventSerializationService implements EventSerializationService { @Override public String serialize(final Event event) { return jsonb.toJson(ActivityStreamMessage.from(event)); }  @Override String serialize(final Event event); }
DefaultEventSerializationService implements EventSerializationService { @Override public String serialize(final Event event) { return jsonb.toJson(ActivityStreamMessage.from(event)); }  @Override String serialize(final Event event);  }