@Test
public void shouldPublishEventWithJobIdAndLevelWARN() {

    // given
    final LoggingEvent loggingEvent = createLoggingEvent(Level.WARN);
    // when
    jobEventAppender.append(loggingEvent);
    // then
    final ArgumentCaptor<JobMessage> messageCaptor = forClass(JobMessage.class);
    verify(jobService).appendMessage(eq("someJobId"), messageCaptor.capture());
    assertMessageEvent(messageCaptor, de.otto.edison.jobs.domain.Level.WARNING);
}