    @Test
    public void pipLogParserTest() throws IOException {

        // Build result map.
        Map<String, String> expectedResult = new HashMap<String, String>() {{
            put("ecopkg1", "ecoPkg1-3.11.tar.gz");
            put("ecopkg2", "");
            put("ecopkg3", "");
            put("ecopkg4", "ecoPkg4-1.1.1-py2.py3-none-any.whl");
            put("ecopkg5", "");
        }};

        // Read pip log.
        InputStream pipLogStream = this.getClass().getResourceAsStream("/pipLogParser/pipLog.txt");
        try {
            String pipLog = IOUtils.toString(pipLogStream, StandardCharsets.UTF_8);
            // Parse.
            Map<String, String> actualMap = PipLogParser.parse(pipLog, log);
            // Validate.
            assertEquals(actualMap.keySet(), expectedResult.keySet());
            assertEquals(actualMap.values(), expectedResult.values());
        } catch (IOException e) {
            // Do nothing.
        } finally {
            if (pipLogStream != null) {
                pipLogStream.close();
            }
        }
    }