@Test
public void isOnBranch() throws Exception {

    RepositoryManager.cloneOrCheckout(remoteGitPath, "https://github.com/thockin/test.git", "newbr", "");
    assertThat(RepositoryManager.isOnBranch(remoteGitPath, "newbr")).isTrue();
    assertThat(RepositoryManager.isOnBranch(remoteGitPath, "incorrect")).isFalse();
}