### Question:
SpringResponseStateManager extends ResponseStateManagerWrapper { @Override public ResponseStateManager getWrapped() { return this.wrapperHandler.getWrapped(); } SpringResponseStateManager(final String renderKitId, ResponseStateManager wrapped); @Override ResponseStateManager getWrapped();  }### Answer:
@Test public void shouldSetRenderKitId() throws Exception { @SuppressWarnings("unchecked") FacesWrapperFactory<ResponseStateManager> wrapperFactory = mock(FacesWrapperFactory.class); addFactoryWrapper("wrapper", wrapperFactory); ResponseStateManager delegate = mock(getTypeClass()); SpringResponseStateManager wrapper = newWrapper(delegate); ResponseStateManager wrapped = mock(getTypeClass(), withSettings().extraInterfaces(RenderKitIdAware.class)); given(wrapperFactory.newWrapper(getTypeClass(), delegate)).willReturn(wrapped); wrapper.getWrapped(); verify((RenderKitIdAware) wrapped).setRenderKitId("rid"); }