	@Test
	public void should_push_changes_to_current_branch() throws Exception {

		File stubs = new File(GitRepoTests.class.getResource("/git_samples/sample_stubs").toURI());

		this.updater.updateContractProject("hello-world", stubs.toPath());

		// project, not origin, cause we're making one more clone of the local copy
		try (Git git = openGitProject(this.project)) {
			RevCommit revCommit = git.log().call().iterator().next();
			then(revCommit.getShortMessage()).isEqualTo("Updating project [hello-world] with stubs");
			// I have no idea but the file gets deleted after pushing
			git.reset().setMode(ResetCommand.ResetType.HARD).call();
		}
		BDDAssertions.then(new File(this.project, "META-INF/com.example/hello-world/0.0.2/mappings/someMapping.json"))
				.exists();
		BDDAssertions.then(this.gitRepo.gitFactory.provider).isNull();
		BDDAssertions.then(this.outputCapture.toString()).contains("No custom credentials provider will be set");
	}