### Question:
PostRedirectGetFormHelperImpl extends AbstractFormHelperImpl implements PostRedirectGetFormHelper { @Override public final Form getForm(final String formName, final SlingHttpServletRequest request) { return getForm(formName, request, null); }  @Override final Form getForm(final String formName, final SlingHttpServletRequest request); @Override final Form getForm(final String formName, final SlingHttpServletRequest request, final SlingHttpServletResponse response); @Override final void sendRedirect(Form form, String path, SlingHttpServletResponse response); @Override final void sendRedirect(Form form, Page page, SlingHttpServletResponse response); @Override final void sendRedirect(Form form, Resource resource, SlingHttpServletResponse response); @Override void sendRedirect(Form form, String path, String formSelector, SlingHttpServletResponse response); @Override void sendRedirect(Form form, Page page, String formSelector, SlingHttpServletResponse response); @Override void sendRedirect(Form form, Resource resource, String formSelector,
            SlingHttpServletResponse response); @Override final void renderForm(final Form form, final Page page, final SlingHttpServletRequest request,
            final SlingHttpServletResponse response); @Override final void renderForm(final Form form, final Resource resource, final SlingHttpServletRequest request,
            final SlingHttpServletResponse response); @Override final void renderForm(final Form form, final String path, final SlingHttpServletRequest request,
            final SlingHttpServletResponse response); @Override final void renderOtherForm(Form form, String path, String formSelector, SlingHttpServletRequest request,
            SlingHttpServletResponse response); @Override final void renderOtherForm(Form form, Page page, String formSelector, SlingHttpServletRequest request,
            SlingHttpServletResponse response); @Override final void renderOtherForm(Form form, Resource resource, String formSelector,
            SlingHttpServletRequest request, SlingHttpServletResponse response);  }### Answer:
@Test public void shouldMapFormName() throws Exception { request.setParameterMap(ImmutableMap.<String, Object>of(":form", "demo")); final Form form = formHelper.getForm("demo", request, response); assertThat(form.getName(), is(equalTo("demo"))); }
@Test public void shouldMapSingleParam() throws Exception { request.setParameterMap(ImmutableMap.<String, Object>of(":form", "x", "hello", "world")); final Form form = formHelper.getForm("x", request, response); assertThat(form.get("hello"), is(equalTo("world"))); }
@Test public void shouldMapFirstValueOfMultiParams() throws Exception { request.setParameterMap(ImmutableMap.<String, Object>of(":form", "x", "hello", new String[]{"world", "mundo"})); final Form form = formHelper.getForm("x", request, response); assertThat(form.get("hello"), is(equalTo("world"))); }