@Test
@SuppressWarnings("null")
public void toStateDescription() {

    StateDescription stateDescription = source.toStateDescription();
    assertThat(stateDescription.getMinimum(), is(source.getMinimum()));
    assertThat(stateDescription.getMaximum(), is(source.getMaximum()));
    assertThat(stateDescription.getStep(), is(source.getStep()));
    assertThat(stateDescription.getPattern(), is(source.getPattern()));
    assertThat(stateDescription.isReadOnly(), is(source.isReadOnly()));
    assertThat(stateDescription.getOptions(), is(source.getOptions()));
}