CapturingPostCreated capturingPostCreated = new CapturingPostCreated();
when(mocks.core.postCreated()).thenReturn(Optional.<PostCreated>of(capturingPostCreated));
CapturingPostCreated capturingPostCreated = new CapturingPostCreated();
when(mocks.core.postCreated()).thenReturn(Optional.<PostCreated>of(capturingPostCreated));