@Test
public void handleMethodAnnotationShouldSetParamsTypeAndName() throws Exception {

    when(mockMethodConfigBuilder.startExtraParamConfig()).thenReturn(mockParamConfigBuilder);
    when(mockParamConfigBuilder.setType(any(ParamType.class))).thenReturn(mockParamConfigBuilder);
    when(mockParamConfigBuilder.setName(any(String.class))).thenReturn(mockParamConfigBuilder);
    when(mockParamConfigBuilder.setDefaultValue(anyString())).thenReturn(mockParamConfigBuilder);
    when(mockParamConfigBuilder.setMetaDatas(any(Map.class))).thenReturn(mockParamConfigBuilder);
    when(mockAnnotation.value()).thenReturn("a");
    when(mockAnnotation.defaultValue()).thenReturn("");
    when(mockAnnotation.contentType()).thenReturn("");
    when(mockAnnotation.fileName()).thenReturn("");
    toTest.handleMethodAnnotation(mockAnnotation, mockMethodConfigBuilder);
    verify(mockMethodConfigBuilder).startExtraParamConfig();
    verify(mockParamConfigBuilder).setType(ParamType.FORM);
    verify(mockParamConfigBuilder).setName("a");
    verify(mockParamConfigBuilder).setDefaultValue(null);
    verify(mockParamConfigBuilder).setMetaDatas(MultiParts.toMetaDatas(null,null));
    verify(mockAnnotation).value();
    verify(mockAnnotation).defaultValue();
    verify(mockAnnotation).contentType();
    verify(mockAnnotation).fileName();
}