RevCommit localcommit = flow.git().commit().setMessage("adding junk file").call();
ReleaseFinishExtensionForTests extension = new ReleaseFinishExtensionForTests();
extension.withException(BaseExtensionForTests.BEFORE_DEVELOP_CHECKOUT, ExtensionFailStrategy.WARN);
ReleaseMergeResult result = flow.releaseFinish("1.0").setFetch(true).setPush(true).setExtension(extension).call();
assertTrue(result.wasSuccessful());
assertTrue("before was not called", extension.wasCalled(BaseExtensionForTests.BEFORE));
assertTrue("beforeFetch was not called", extension.wasCalled(BaseExtensionForTests.BEFORE_FETCH));