@Test
public void onExecutorAdded() {

    TriConsumer<Long, Header, Object> handlerMock = mock(TriConsumer.class);
    SparkListener listener = new GarmadonSparkListener(handlerMock, DUMMY_HEADER.toSerializeHeader());
    listener.onExecutorAdded(new SparkListenerExecutorAdded(1, "invokationExecutorId",
            new ExecutorInfo("infoHost", 12, new HashMap<>())));
    checkExecutorEventHeader(handlerMock, DUMMY_HEADER.cloneAndOverride(Header.newBuilder()
            .withExecutorId("invokationExecutorId").build()));
}