@Test
public void givenAnyLayoutImplementingItemSourceLayoutDelegatesToItemSourceLayoutFactoryMethod() {

    // given
    ItemAppenderFactory factory = spy(new ItemAppenderFactory());
    BatchDelivery batchDelivery = mock(BatchDelivery.class);
    ItemSourceLayout itemSourceLayout = spy(new TestItemSourceLayout());
    // when
    factory.createInstance(false, itemSourceLayout, batchDelivery);
    // then
    verify(factory).createInstance(eq(false), eq(itemSourceLayout), eq(batchDelivery));
}