### Question:
AbstractProcessorDecorator implements Processor<TDef> { @Override public TDef getElementDef() { return this.decoratedProcessor.getElementDef(); } AbstractProcessorDecorator(final Processor<TDef> decoratedProcessor); @Override void setElementDef(final TDef elementDef); @Override TDef getElementDef(); @Override Processor getParentProcessor(); @Override void setParentProcessor(final Processor parentProcessor); @Override int getRunningLevel();  }### Answer:
@Test public void getElementDef() { expect(mockProcessor.getElementDef()).andReturn(mockElement); EasyMockUnitils.replay(); final IElementDef element = decorator.getElementDef(); assertNotNull("Returned element is null.", element); assertSame("Unexpected element.", mockElement, element); }