    @Test
    public void testEvaluateSchedule() throws Exception
    {                

        JsspPhenotypeEvaluator evaluator = new JsspPhenotypeEvaluator(_jobsDefinition);
        
        Integer[] jobArray = new Integer[] {1,1,1,2,2,2};
        double[] objVal =  evaluator.evaluateSchedule(jobArray);
        assertEquals (12, (int)objVal[0]);
        
        jobArray = new Integer[] {1,2,1,2,1,2};
        objVal =  evaluator.evaluateSchedule(jobArray, true);
        assertEquals (6, (int)objVal[0]);
        assertNotNull(evaluator.getSchedule());
        
    }