* @return note
* @throws Exception
*/
protected Note note(String content, String ref) throws Exception {
Git git = Git.open(testRepo);
Note note = git.notesAdd().setMessage(content)
.setNotesRef(Constants.R_NOTES + ref)
.setObjectId(CommitUtils.getHead(git.getRepository())).call();
assertNotNull(note);
return note;
}