PlanParser { public Plan parse(String content) throws ParsingException { return parse(new StringReader(content)); } PlanParser();  PlanParser(Configuration configuration); boolean isWrapInTestcase(); void setWrapInTestcase(boolean wrapInTestcase); Plan parse(String content); Plan parse(InputStream inputStream);  }
@Test public void testWrap() throws IOException, ParsingException { PlanParser parser = new PlanParser(); Plan plan = parser.parse("Echo 'test'\nEcho 'test'"); Assert.assertEquals(TestCase.class, plan.getRoot().getClass()); }