### Question:
CrontabParser { public int getFixedNextInvocationValue(int currentValue, List<Integer> fixedInvocations) { if (fixedInvocations != null) { if (fixedInvocations.size() == 0) { throw new IllegalStateException("Invalid configuration..."); } for (int fixed : fixedInvocations) { if (fixed > currentValue) { return fixed; } } return fixedInvocations.get(0); } else { return currentValue; } } CrontabParser(Class<? extends TaskunLog> logImplClass); Crontab parseLine(RawCrontabLine line); List<Integer> getFixedInvocations(int maxValue, CrontabElement crontabElement); long getNextInvocationTime(Calendar currentTime, Crontab crontab); Crontab replaceWildcardsOfMinuteOrHourValue(Crontab crontab); int getCrontabDayOfWeekNumber(Calendar cal); int getFixedMinimumInvocationValue(List<Integer> fixedInvocations); int getFixedSameOrNextInvocationValue(int currentValue, List<Integer> fixedInvocations); int getFixedNextInvocationValue(int currentValue, List<Integer> fixedInvocations); int getFixedNextInvocationValue(int currentValue, int maxValue, CrontabElement element); boolean isInvocationValueContainedInCrontabValue(
            int invocationValue, int maxValue, CrontabElement element); Crontab getIntervalInvocationCrontab(Crontab crontab, String[] elements);  }### Answer:
@Test public void getFixedNextInvocationValue_A$int$List() throws Exception { int arg0 = 0; final List<Integer> arg1 = new ArrayList<Integer>(); arg1.add(1); int actual = parser.getFixedNextInvocationValue(arg0, arg1); int expected = 1; assertEquals(expected, actual); }
@Test public void getFixedNextInvocationValue_A$int$int$RawCrontabLine() throws Exception { int arg0 = 0; int arg1 = 60; CrontabElement arg2 = new CrontabElement("*/3"); int actual = parser.getFixedNextInvocationValue(arg0, arg1, arg2); int expected = 3; assertEquals(expected, actual); }