### Question:
DdlParser { public List<String> parse(File ddlFile) { InputStream is = null; try { is = new FileInputStream(ddlFile); return parse(is); } catch (Exception e) { throw new RuntimeException(e); } finally { IOUtils.closeQuietly(is); } } DdlParser(); List<String> parse(File ddlFile); @SuppressWarnings("nls") List<String> parse(InputStream ddlStream); @SuppressWarnings("nls") static void main(String[] args);  }### Answer:
@Test public void testParseInputStream() { try (InputStream testDdlIS = getClass().getResourceAsStream("test.ddl")) { DdlParser parser = new DdlParser(); List<String> statements = parser.parse(testDdlIS); StringBuilder builder = new StringBuilder(); for (String statement : statements) { builder.append(statement).append("\n").append("---").append("\n"); } Assert.assertEquals(EXPECTED, builder.toString()); } catch (IOException e) { throw new RuntimeException(e); } }