    @Test
    public void processInvalid() throws DriverException, CloseException {

        final String input = "garbage";
        final InputStream in = new ByteArrayInputStream(input.getBytes());
        final RequestReader reader = new RequestReader(in);

        final ByteArrayOutputStream out = new ByteArrayOutputStream();
        final ResponseWriter writer = new ResponseWriter(out);

        final Driver driver = new Driver(reader, writer);
        driver.processOne();

        final String result = new String(out.toByteArray());
        assertThat(result).contains("{\"status\":\"fatal\",\"errors\":[\"");
        assertThat(result).contains("Unrecognized token 'garbage'");
    }