    @Test(expected = ResultNotReadyException.class)
    public void testValidationGetResultNoResult() throws OwsExceptionReport, JobNotFoundException {

        EngineImpl engine = Mockito.mock(EngineImpl.class);
        Mockito.when(engine.hasJob(Mockito.any())).thenReturn(true);
        Mockito.when(engine.getResult(Mockito.any())).thenReturn(new FutureTask<>(() -> {}, null));
        JobIdParameterValidator val = new JobIdParameterValidator();
        val.setEngine(engine);

        GetResultRequest grr = new GetResultRequest("WPS", "2.0.0");
        grr.setJobId("test-job");
        val.validate(grr);
    }