### Question:
ConfigurationParameterFactory { public static ConfigurationParameter createPrimitiveParameter(Field field) { if (isConfigurationParameterField(field)) { org.apache.uima.fit.descriptor.ConfigurationParameter annotation = ReflectionUtil .getAnnotation(field, org.apache.uima.fit.descriptor.ConfigurationParameter.class); String name = getConfigurationParameterName(field); boolean multiValued = isMultiValued(field); String parameterType = getConfigurationParameterType(field); return createPrimitiveParameter(name, parameterType, annotation.description(), multiValued, annotation.mandatory()); } else { throw new IllegalArgumentException("field is not annotated with annotation of type " + org.apache.uima.fit.descriptor.ConfigurationParameter.class.getName()); } } private  ConfigurationParameterFactory(); static boolean isConfigurationParameterField(Field field); static Object getDefaultValue(Field field); static String getConfigurationParameterName(Field field); static ConfigurationParameter createPrimitiveParameter(Field field); static ConfigurationParameter createPrimitiveParameter(String name,
          Class<?> parameterClass, String parameterDescription, boolean isMandatory); static ConfigurationParameter createPrimitiveParameter(String name, String parameterType,
          String parameterDescription, boolean isMultiValued, boolean isMandatory); static void setParameters(ResourceCreationSpecifier desc,
          Class<?> componentClass, ConfigurationParameter[] configurationParameters,
          Object[] configurationValues); static ConfigurationData createConfigurationData(Object... configurationData); static ConfigurationData createConfigurationData(Class<?> componentClass); static void addConfigurationParameters(ResourceCreationSpecifier specifier,
          Object... configurationData); static void addConfigurationParameters(ResourceCreationSpecifier specifier,
          List<Class<?>> dynamicallyLoadedClasses); static void addConfigurationParameters(ResourceCreationSpecifier specifier,
          Class<?>... dynamicallyLoadedClasses); static void addConfigurationParameter(ResourceCreationSpecifier specifier, String name,
          Object value); static Map<String, Object> getParameterSettings(ResourceSpecifier spec); static void setParameter(ResourceSpecifier aSpec, String name, Object value); static boolean canParameterBeSet(ResourceSpecifier aSpec, String name);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void test2() throws Exception { ConfigurationParameterFactory.createPrimitiveParameter(ConfigurationParameterFactoryTest.class .getDeclaredField("double3")); }