ifs-web-service/ifs-application-commons/src/test/java/org/innovateuk/ifs/async/controller/endtoend/EndToEndAsyncControllerIntegrationTest.java
/**
     * This method simulates a random time for responses to return from the data layer to ensure that our Futures execute
     * in different orders, as in real life.
     */
This method simulates a random time for responses to return from the data layer to ensure that our Futures execute
in different orders, as in real life.
This method simulates a random time for responses to return from the data layer to ensure that our Futures execute in different orders as in real life .
private <T> T delayedResponse(T response) {
        sleepQuietlyForRandomInterval();
        return response;
    }
private < T > T delayedResponse ( T response ) { sleepQuietlyForRandomInterval ( ) ; return response ; }
This method simulates a random time for responses to return from the data layer to ensure that our Futures execute
 in different orders, as in real life.
This method simulates a random time for responses to return from the data layer to ensure that our Futures execute in different orders as in real life .