@Test
public void resolvesDecodedFormParamAsString() throws Exception {

    when(parameter.isEncoded()).thenReturn(false);
    when(typeProducer.createValue("foo", decodedForm, null)).thenReturn(decodedForm.getFirst("foo"));
    Object resolved = formParameterResolver.resolve(parameter, applicationContext);
    assertEquals(decodedForm.getFirst("foo"), resolved);
    assertThatMessageBodyWriterWasCalled();
}