@Test
public void firstDesciptionWinsForNormalization() throws URISyntaxException {

    ConfigDescription configDescriptionInteger = ConfigDescriptionBuilder.create(new URI("thing:fooThing"))
            .withParameter(ConfigDescriptionParameterBuilder.create("foo", INTEGER).build()).build();
    ConfigDescription configDescriptionString = ConfigDescriptionBuilder.create(new URI("thingType:fooThing"))
            .withParameter(ConfigDescriptionParameterBuilder.create("foo", TEXT).build()).build();
    assertThat(ConfigUtil.normalizeTypes(Map.of("foo", "1"), List.of(configDescriptionInteger)).get("foo"),
            is(instanceOf(BigDecimal.class)));
    assertThat(ConfigUtil.normalizeTypes(Map.of("foo", "1"), List.of(configDescriptionString)).get("foo"),
            is(instanceOf(String.class)));
    assertThat(ConfigUtil
            .normalizeTypes(Map.of("foo", "1"), List.of(configDescriptionInteger, configDescriptionString))
            .get("foo"), is(instanceOf(BigDecimal.class)));
    assertThat(ConfigUtil
            .normalizeTypes(Map.of("foo", "1"), List.of(configDescriptionString, configDescriptionInteger))
            .get("foo"), is(instanceOf(String.class)));
}