### Question:
RadioGroupFieldProvider extends SelectorFieldProvider<RadioGroupBaseDefinition> { @Override public RadioGroupBaseDefinition createFieldByType(TypeInfo typeInfo) { if (isSupported(typeInfo)) { String className = typeInfo.getClassName(); if (Byte.class.getName().equals(className) || byte.class.getName().equals(className) || Short.class.getName().equals(className) || short.class.getName().equals(className) || Integer.class.getName().equals(className) || int.class.getName().equals(className) || Long.class.getName().equals(className) || long.class.getName().equals(className) || BigInteger.class.getName().equals(className)) { return new IntegerRadioGroupFieldDefinition(); } if (Float.class.getName().equals(className) || float.class.getName().equals(className) || Double.class.getName().equals(className) || double.class.getName().equals(className) || BigDecimal.class.getName().equals(className)) { return new DecimalRadioGroupFieldDefinition(); } if (Character.class.getName().equals(className) || char.class.getName().equals(className)) { return new CharacterRadioGroupFieldDefinition(); } return getDefaultField(); } return null; }  @Override Class<RadioGroupFieldType> getFieldType(); @Override String getFieldTypeName(); @Override int getPriority(); @Override RadioGroupBaseDefinition getDefaultField(); @Override RadioGroupBaseDefinition createFieldByType(TypeInfo typeInfo);  }### Answer:
@Test public void testCreateFieldByType() { testCreateFieldByType(byte.class, IntegerRadioGroupFieldDefinition.class); testCreateFieldByType(Byte.class, IntegerRadioGroupFieldDefinition.class); testCreateFieldByType(short.class, IntegerRadioGroupFieldDefinition.class); testCreateFieldByType(Short.class, IntegerRadioGroupFieldDefinition.class); testCreateFieldByType(int.class, IntegerRadioGroupFieldDefinition.class); testCreateFieldByType(Integer.class, IntegerRadioGroupFieldDefinition.class); testCreateFieldByType(long.class, IntegerRadioGroupFieldDefinition.class); testCreateFieldByType(Long.class, IntegerRadioGroupFieldDefinition.class); testCreateFieldByType(BigInteger.class, IntegerRadioGroupFieldDefinition.class); testCreateFieldByType(float.class, DecimalRadioGroupFieldDefinition.class); testCreateFieldByType(Float.class, DecimalRadioGroupFieldDefinition.class); testCreateFieldByType(double.class, DecimalRadioGroupFieldDefinition.class); testCreateFieldByType(Double.class, DecimalRadioGroupFieldDefinition.class); testCreateFieldByType(BigDecimal.class, DecimalRadioGroupFieldDefinition.class); testCreateFieldByType(char.class, CharacterRadioGroupFieldDefinition.class); testCreateFieldByType(Character.class, CharacterRadioGroupFieldDefinition.class); testCreateFieldByType(String.class, StringRadioGroupFieldDefinition.class); when(typeInfo.getClassName()).thenReturn(Boolean.class.getName()); assertNull(provider.createFieldByType(typeInfo)); }