@Test
public void shouldDecodeValueAsRangeObjectUsingFirstSeparatorFromMatcherFoundInValue() {

    // given
    BetweenMatcher matcher = new BetweenMatcher(true, true, "~#");
    // when
    Range<String> decoded = type.decode("A#B", null, matcher);
    // then
    assertThat(decoded.from()).isEqualTo("A");
    assertThat(decoded.to()).isEqualTo("B");
}