FaceletHandler global1 = mockFaceletHandler("global1", Type.VARIABLE_DECLARATION);
FaceletHandler global2 = mockFaceletHandler("global2", Type.VARIABLE_DECLARATION);
FaceletHandler local1 = mockFaceletHandler("local1", Type.VARIABLE_DECLARATION);
FaceletHandler local2 = mockFaceletHandler("local2", Type.VARIABLE_DECLARATION);
FaceletHandler local3 = mockFaceletHandler("local3", Type.VARIABLE_DECLARATION);
FaceletHandler nextHandler = new CompositeFaceletHandler(new FaceletHandler[] { global1, global2,
this.component1, local1, local2, this.component2, local3 });
given(this.tagConfig.getNextHandler()).willReturn(nextHandler);
createDecorateAllHandlerAndApply();
assertThat(this.variableDeclarationHandlers1.getValue(),
is(equalTo(Arrays.asList(global1, global2, local1, local2))));