Print extends BaseExpression { public Print() { this("\n"); } Print(); private  Print(String suffix); static void registerExpression(ExpressionFactory factory); @Override Result apply(PathData item, int depth); @Override boolean isAction();  }
@Test public void testPrint() throws IOException { Print print = new Print(); PrintStream out = mock(PrintStream.class); FindOptions options = new FindOptions(); options.setOut(out); print.setOptions(options); String filename = "/one/two/test"; PathData item = new PathData(filename, mockFs.getConf()); assertEquals(Result.PASS, print.apply(item, -1)); verify(out).print(filename + '\n'); verifyNoMoreInteractions(out); }