@Test public void floats() throws SecurityException, NoSuchFieldException { ConfiguredField f = configuredField("floats"); assertThat(f.getCoercionTarget().hasComponents()).isTrue(); assertThat(f.getCoercionTarget().getComponentCoercionTypes()) .containsOnly(CoercionTargets.find(Float.class)); }
private ConfiguredField configuredField(Object target, Field field) { return new ConfiguredField( new SimpleNameConfigurationTarget(target), target, field, CoercionTargets.find(field)); }