package com.cronutils;

import com.cronutils.model.Cron;
import com.cronutils.model.CronType;
import com.cronutils.model.definition.CronDefinitionBuilder;
import com.cronutils.parser.CronParser;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

public class Issue413Test {

    @Test
    public void testFridayToSaturdayQuartz() {
        final CronParser parser = new CronParser(CronDefinitionBuilder.instanceDefinitionFor(CronType.UNIX));
        final Cron quartzCron = parser.parse("* * * */12 *");
        try {
            quartzCron.validate();
            // expected to fail.
            fail();
        } catch (IllegalArgumentException expected) {
            assertEquals("Failed to parse '* * * */12 *'. Period 12 not in range (1, 12]", expected.getMessage());
        }
    }
}

@@ -21,41 +21,8 @@
 s;%0A%0A
-import com.cronutils.model.Cron;%0A
 impo
@@ -470,31 +470,25 @@
     
-final Cron quartzCron =
+try %7B%0A           
  par
@@ -518,57 +518,8 @@
 %22);%0A
-        try %7B%0A            quartzCron.validate();%0A
     
@@ -706,15 +706,15 @@
 nge 
-(
+%5B
 1, 12
-%5D
+)
 %22, e

simplify and fix the test