@Test
public void testMinValueMaxValueStepAndPatternTwoDescriptionProviders() {

    StateDescriptionFragment stateDescriptionFragment1 = StateDescriptionFragmentBuilder.create()
            .withMinimum(new BigDecimal(-1)) //
            .withMaximum(new BigDecimal(-1)) //
            .withStep(new BigDecimal(-1)) //
            .withPattern("pattern1").build();
    registerStateDescriptionFragmentProvider(stateDescriptionFragment1, -1);
    StateDescriptionFragment stateDescriptionFragment2 = StateDescriptionFragmentBuilder.create()
            .withMinimum(new BigDecimal(-2)) //
            .withMaximum(new BigDecimal(-2)) //
            .withStep(new BigDecimal(-2)) //
            .withPattern("pattern2").build();
    registerStateDescriptionFragmentProvider(stateDescriptionFragment2, -2);
    StateDescription stateDescription = item.getStateDescription();
    assertThat(stateDescription.getMinimum(), is(stateDescriptionFragment1.getMinimum()));
    assertThat(stateDescription.getMaximum(), is(stateDescriptionFragment1.getMaximum()));
    assertThat(stateDescription.getStep(), is(stateDescriptionFragment1.getStep()));
    assertThat(stateDescription.getPattern(), is(stateDescriptionFragment1.getPattern()));
}