class BaseServerListResponse extends ArrayList<BaseServerResponse> {

    public List<Exception> listExceptions() {
        return
            this
                .stream()
                .filter(this::isJobNotQueued)
                .map(this::errorMessage)
                .map(ClcClientException::new)
                .collect(toList());
    }

}

class BaseServerListResponseTest {

     BaseServerListResponse response;

    @Test
    public void testListExceptions_onlyNotQueued() throws Exception {

        response = prepareResponseList(basicServerResponse("VA1ALTDSRV101").queued(false));

        List<Exception> errors = response.listExceptions();

        assertEquals(errors.size(), 1);
        assertContains(firstErrorMessage(errors), "VA1ALTDSRV101", "not queued");
    }

}