@Test public void testExecute() throws IOException { MustacheLambdaOdd mustacheLambdaOdd = new MustacheLambdaOdd(); String key = "key"; Writer mock = mock(Writer.class); mustacheLambdaOdd.execute(key, mock); mustacheLambdaOdd.execute(key, mock); mustacheLambdaOdd.execute(key, mock); mustacheLambdaOdd.execute(key, mock); verify(mock, times(2)).write("odd"); }
@Override public void execute(Template.Fragment frag, Writer out) throws IOException { String key = frag.execute(); execute(key, out); }
MustacheLambdaOdd implements Mustache.Lambda { @Override public void execute(Template.Fragment frag, Writer out) throws IOException { String key = frag.execute(); execute(key, out); } }
MustacheLambdaOdd implements Mustache.Lambda { @Override public void execute(Template.Fragment frag, Writer out) throws IOException { String key = frag.execute(); execute(key, out); }  }
MustacheLambdaOdd implements Mustache.Lambda { @Override public void execute(Template.Fragment frag, Writer out) throws IOException { String key = frag.execute(); execute(key, out); }  @Override void execute(Template.Fragment frag, Writer out); }
MustacheLambdaOdd implements Mustache.Lambda { @Override public void execute(Template.Fragment frag, Writer out) throws IOException { String key = frag.execute(); execute(key, out); }  @Override void execute(Template.Fragment frag, Writer out);  }