### Question:
FlaskPyflameParser implements PyflameParser { @Override public Profile parseFlamegraph(String input, String basePath) { List<String> lines = Splitter.on("\n").trimResults().omitEmptyStrings().splitToList(input); input = lines.stream().filter(rootPattern.asPredicate()).collect(Collectors.joining("\n")); return rawPyflameParser.parseFlamegraph(input, basePath); } FlaskPyflameParser();  FlaskPyflameParser(String rootPattern); @Override Profile parseFlamegraph(String input, String basePath);  }### Answer:
@Test public void testEmptyInput() { String input = ""; Profile profile = flaskPyflameParser.parseFlamegraph(input, "/"); Assertions.assertEquals(0, profile.getTotalSamples()); Assertions.assertEquals(0, profile.numberOfUniqueLines()); }