@Test
public void handleParameterAnnotationShouldSetTypeAndName() throws Exception {

    when(mockParamConfigBuilder.setType(any(ParamType.class))).thenReturn(mockParamConfigBuilder);
    when(mockAnnotation.value()).thenReturn("a");
    toTest.handleParameterAnnotation(mockAnnotation, mockParamConfigBuilder);
    verify(mockParamConfigBuilder).setType(ParamType.QUERY);
    verify(mockParamConfigBuilder).setName("a");
    verify(mockAnnotation).value();
}