### Question:
SpringRenderKit extends RenderKitWrapper { @Override public ResponseStateManager getResponseStateManager() { if (this.responseStateManager == null) { this.responseStateManager = new SpringResponseStateManager(this.renderKitId, super.getResponseStateManager()); } return this.responseStateManager; } SpringRenderKit(String renderKitId, RenderKit wrapped); @Override RenderKit getWrapped(); @Override ResponseStateManager getResponseStateManager();  }### Answer:
@Test public void shouldCreateWrappedResponseStateManager() throws Exception { RenderKit delegate = mock(RenderKit.class); ResponseStateManager responseStateManager = mock(ResponseStateManager.class); given(delegate.getResponseStateManager()).willReturn(responseStateManager); SpringRenderKit springRenderKit = new SpringRenderKit("rid", delegate); ResponseStateManager actual = springRenderKit.getResponseStateManager(); assertThat(actual, is(instanceOf(SpringResponseStateManager.class))); verify(delegate).getResponseStateManager(); }