    @Test
    public void testSubsequence() {

        String[] input = new String[3];
        input[0] = "foo";
        input[1] = "bar";
        input[2] = "baz";
        String regex = PatternGenerator.acceptStrings(input);

        Pattern pattern = Pattern.compile(regex);

        assertTrue(pattern.matcher("foo").find());
        assertTrue(pattern.matcher("bar").find());
        assertTrue(pattern.matcher("baz").find());
        assertTrue(pattern.matcher("hellofoo").find());
        assertTrue(pattern.matcher("hellofooworld").find());
        assertFalse(pattern.matcher("").find());
    }