    @Test(expected = IllegalArgumentException.class)
    public void testSetProgressEndpointsWithNaNs() {

        AbstractTask instance = new CapitalizeStringTask("a string to capitalize");
        instance.setProgressEndpoints(Double.NaN, Double.NaN);
    }