### Question:
RevisionControlOperation { public R execute(RevisionController revisionController, String pagePath) { return execute(revisionController, pagePath, new HashMap<String, String>()); } protected  RevisionControlOperation(String name, String query, String accessKey);  RevisionControlOperation(String name, String query, String accessKey, String description); WikiPageAction makeAction(String pageName); HtmlTag makeHtml(String resource); String getName(); String getQuery(); String getAccessKey(); String getDescription(); @Override String toString(); R execute(RevisionController revisionController, String pagePath); abstract R execute(RevisionController revisionController, String pagePath, Map<String, String> args); static final RevisionControlOperation<Results> ADD; static final RevisionControlOperation<State> SYNC; static final RevisionControlOperation<NewRevisionResults> UPDATE; static final RevisionControlOperation<Results> CHECKOUT; static final RevisionControlOperation<NewRevisionResults> CHECKIN; static final RevisionControlOperation<Results> REVERT; static final RevisionControlOperation<StatusResults> STATUS; }### Answer:
@Test public void addShouldDelegateCallToRevisionController() throws Exception { expect(revisionController.add(filePath)).andReturn(new Results()); replay(revisionController); ADD.execute(revisionController, filePath); }
@Test public void checkinShouldDelegateCallToRevisionController() throws Exception { expect(revisionController.checkin(filePath, "")).andReturn(new NewRevisionResults()); replay(revisionController); CHECKIN.execute(revisionController, filePath); }
@Test public void checkoutShouldDelegateCallToRevisionController() throws Exception { expect(revisionController.checkout(filePath)).andReturn(new Results()); replay(revisionController); CHECKOUT.execute(revisionController, filePath); }
@Test public void revertShouldDelegateCallToRevisionController() throws Exception { expect(revisionController.revert(filePath)).andReturn(new Results()); replay(revisionController); REVERT.execute(revisionController, filePath); }
@Test public void updateShouldDelegateCallToRevisionController() throws Exception { expect(revisionController.update(filePath)).andReturn(new NewRevisionResults()); replay(revisionController); UPDATE.execute(revisionController, filePath); }
@Test public void syncShouldDelegateCallToRevisionController() throws Exception { expect(revisionController.getState(filePath)).andReturn(VERSIONED); replay(revisionController); SYNC.execute(revisionController, filePath); }