@Test
void testIsMatch() {

    final StringCriteria criteria = new StringCriteria();
    criteria.setString("XYZ");
    assertThat(criteria.isMatch("XY")).isFalse();
    assertThat(criteria.isMatch("XYZ")).isTrue();
    criteria.setMatchStyle(MatchStyle.WildEnd);
    assertThat(criteria.isMatch("XYZ123")).isTrue();
    assertThat(criteria.isMatch("XYZ")).isTrue();
    assertThat(criteria.isMatch("123XYZ123")).isFalse();
    criteria.setMatchStyle(MatchStyle.WildStartAndEnd);
    assertThat(criteria.isMatch("XYZ123")).isTrue();
    assertThat(criteria.isMatch("123XYZ123")).isTrue();
}