@Test
public void testParse() throws Exception {

    RangeOption range = RangeOption.parse("Range=0-100");
    assertThat(range.getInitial()).isEqualTo(0);
    assertThat(range.getTerminal()).isEqualTo(100);
    range = RangeOption.parse("range=0-100");
    assertThat(range.getInitial()).isEqualTo(0);
    assertThat(range.getTerminal()).isEqualTo(100);
    range = RangeOption.parse("RANGE=0-100");
    assertThat(range.getInitial()).isEqualTo(0);
    assertThat(range.getTerminal()).isEqualTo(100);
    range = RangeOption.parse("Range=0-*");
    assertThat(range.getInitial()).isEqualTo(0);
    assertThat(range.getTerminal()).isEqualTo(RangeOption.TERMINAL_END_OF_RANGE);
    range = RangeOption.parse("Range=10");
    assertThat(range.getInitial()).isEqualTo(10);
    assertThat(range.getTerminal()).isEqualTo(RangeOption.TERMINAL_MISSING);
}