@Test
public void handleMethodAnnotationShouldSetParamsTypeAndNameAndDefaultValue() throws Exception {

    when(mockMethodConfigBuilder.startExtraParamConfig()).thenReturn(mockParamConfigBuilder);
    when(mockParamConfigBuilder.setType(any(ParamType.class))).thenReturn(mockParamConfigBuilder);
    when(mockParamConfigBuilder.setName(any(String.class))).thenReturn(mockParamConfigBuilder);
    when(mockAnnotation.value()).thenReturn("a");
    when(mockAnnotation.defaultValue()).thenReturn("b");
    toTest.handleMethodAnnotation(mockAnnotation, mockMethodConfigBuilder);
    verify(mockMethodConfigBuilder).startExtraParamConfig();
    verify(mockParamConfigBuilder).setType(ParamType.QUERY);
    verify(mockParamConfigBuilder).setName("a");
    verify(mockParamConfigBuilder).setDefaultValue("b");
    verify(mockAnnotation).value();
    verify(mockAnnotation).defaultValue();
}