@Override
    public ConfigFileList responseMessageForConfigFiles(String responseBody) {
        ConfigFilesResponseMessage response = codec.getGson().fromJson(responseBody, ConfigFilesResponseMessage.class);
        return ConfigFileList.from(response.getFiles());
    }
@Test
    public void shouldReturnErrorWhenInvalidResponseJSON() {
        assertTrue(handler.responseMessageForConfigFiles("{\"files\": null}").hasErrors());
        assertTrue(handler.responseMessageForConfigFiles("{\"blah\": [\"file\"]}").hasErrors());
        assertTrue(handler.responseMessageForConfigFiles("{}").hasErrors());
    }