@Test
public void testOptionsWhenTwoDescriptionProvidersHigherRankingProvidesOptions() {

    StateDescriptionFragment stateDescriptionFragment1 = StateDescriptionFragmentBuilder.create()
            .withOption(new StateOption("value", "label")).build();
    registerStateDescriptionFragmentProvider(stateDescriptionFragment1, -1);
    StateDescriptionFragment stateDescriptionFragment2 = StateDescriptionFragmentBuilder.create().build();
    registerStateDescriptionFragmentProvider(stateDescriptionFragment2, -2);
    StateDescription stateDescription = item.getStateDescription();
    assertThat(stateDescription.getOptions(), is(stateDescriptionFragment1.getOptions()));
}