@Test
public void handleParameterAnnotationShouldSetTypeAndName() throws Exception {

    when(super.mockParamConfigBuilder.setType(any(ParamType.class))).thenReturn(super.mockParamConfigBuilder);
    when(super.mockParamConfigBuilder.setName(any(String.class))).thenReturn(super.mockParamConfigBuilder);
    when(super.mockParamConfigBuilder.setDefaultValue(anyString())).thenReturn(super.mockParamConfigBuilder);
    when(mockAnnotation.value()).thenReturn("a");
    when(mockAnnotation.defaultValue()).thenReturn("");
    toTest.handleParameterAnnotation(mockAnnotation, super.mockParamConfigBuilder);
    verify(super.mockParamConfigBuilder).setType(ParamType.COOKIE);
    verify(super.mockParamConfigBuilder).setName("a");
    verify(super.mockParamConfigBuilder).setDefaultValue(null);
    verify(mockAnnotation).value();
    verify(mockAnnotation).defaultValue();
}