ctx.setMaster("own").setDevelop("you");
remoteGit = RepoUtil.createRepositoryWithBranches(newDir(), "own");
gfGit = Git.cloneRepository().setDirectory(workDir).setURI("file://" + remoteGit.getRepository().getWorkTree().getPath()).call();
JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
JGitFlow flow = initCommand.setDirectory(gfGit.getRepository().getWorkTree()).setInitContext(ctx).call();
flow.git().checkout().setName(flow.getDevelopBranchName()).call();
assertEquals(flow.getDevelopBranchName(), flow.git().getRepository().getBranch());
File gitDir = gfGit.getRepository().getDirectory();
File gitConfig = new File(gitDir, "config");
assertTrue(gitConfig.exists());
String configText = new String(IO.readFully(gitConfig));
assertTrue(configText.contains("[gitflow \"branch\"]"));
assertTrue(configText.contains("[gitflow \"prefix\"]"));
assertEquals("own", flow.getMasterBranchName());
assertEquals("you", flow.getDevelopBranchName());
assertEquals("feature/", flow.getFeatureBranchPrefix());
assertEquals("release/", flow.getReleaseBranchPrefix());
assertEquals("hotfix/", flow.getHotfixBranchPrefix());
assertEquals("support/", flow.getSupportBranchPrefix());
assertEquals("", flow.getVersionTagPrefix());
}