@Test
public void testIsReadOnlyWhenTwoDescriptionProvidersHigherRankingIsReadOnly() {

    StateDescriptionFragment stateDescriptionFragment1 = StateDescriptionFragmentBuilder.create()
            .withReadOnly(Boolean.TRUE).build();
    registerStateDescriptionFragmentProvider(stateDescriptionFragment1, -1);
    StateDescriptionFragment stateDescriptionFragment2 = StateDescriptionFragmentBuilder.create().build();
    registerStateDescriptionFragmentProvider(stateDescriptionFragment2, -2);
    StateDescription stateDescription = item.getStateDescription();
    assertThat(stateDescription.isReadOnly(), is(stateDescriptionFragment1.isReadOnly()));
}