@Test
public void testMatching() {

    assertTrue(StrUtils.isCodeOk("1234567890-abc_xyz:1.0"));
    assertTrue(StrUtils.isCodeOk("aaa.txt"));
    assertTrue(StrUtils.isCodeOk("aaa."));
    assertFalse(StrUtils.isCodeOk("1234567890-?#$%abc_xyz:1.0"));
    assertFalse(StrUtils.isCodeOk("aaa bbb.txt"));
    assertFalse(StrUtils.isCodeOk("aaa,bbb.txt"));
    assertFalse(StrUtils.isCodeOk("aaaäöü.txt"));
}