List<FaceletHandler> variableDeclarationHandlers = new ArrayList<FaceletHandler>();
FaceletHandler paramHandler = mock(ParamHandler.class);
variableDeclarationHandlers.add(paramHandler);
VariableMapper originalVariableMapper = mock(VariableMapper.class);
given(this.ctx.getVariableMapper()).willReturn(originalVariableMapper);
DecoratedChild decorated = this.delegate.createdDecoratedChild(handler, variableDeclarationHandlers);
decorated.apply(this.ctx, this.parent, null);
verify(this.ctx, times(2)).setVariableMapper(this.variableMapper.capture());
assertThat(this.variableMapper.getAllValues().get(0), is(VariableMapperWrapper.class));
assertThat(this.variableMapper.getAllValues().get(1), is(sameInstance(originalVariableMapper)));
verify(paramHandler).apply(this.ctx, this.parent);
}