public boolean isMatch(String input) {

        for (StringMatch stringMatch : oneof) {
            if (stringMatch.isMatch(input)) {
                return true;
            }
        }
        return false;
    }
@Test
    void isMatch() {
        ListStringMatch listStringMatch = new ListStringMatch();

        List<StringMatch> oneof = new ArrayList<>();

        StringMatch stringMatch1 = new StringMatch();
        stringMatch1.setExact("1");

        StringMatch stringMatch2 = new StringMatch();
        stringMatch2.setExact("2");

        oneof.add(stringMatch1);
        oneof.add(stringMatch2);

        listStringMatch.setOneof(oneof);

        assertTrue(listStringMatch.isMatch("1"));
        assertTrue(listStringMatch.isMatch("2"));
        assertFalse(listStringMatch.isMatch("3"));
    }