### Question:
PipelineConfigReader { public List<ConfigurationEntry> readConfigurations(String config, ObjectMapper mapper) { try { return mapper.readValue(config, new TypeReference<List<ConfigurationEntry>>() { }); } catch (JsonMappingException e) { return Collections.singletonList(readConfiguration(config, mapper)); } catch (IOException e) { LOGGER.debug(e.getMessage(), e); throw new ConfigurationReadingException(config, e); } }  ConfigurationEntry readConfiguration(String config, ObjectMapper mapper); List<ConfigurationEntry> readConfigurations(String config, ObjectMapper mapper);  }### Answer:
@Test public void readConfigurations() throws Exception { List<ConfigurationEntry> configurations = new PipelineConfigReader().readConfigurations(ARRAY_JSON, MAPPER); assertEquals(2, configurations.size()); configurations.forEach(conf -> assertEquals(CONFIGURATION_NAME, conf.getName())); }