void () { List<String> specs = Arrays.asList("+refs/heads/master:refs/remotes/origin/master", "refs/heads/qa/*:refs/remotes/origin/qa/*"); assertEquals("refs/remotes/origin/qa/ticket1", getTargetRef("qa/ticket1", specs)); assertEquals("refs/remotes/origin/master", getTargetRef("master", specs)); assertNull(getTargetRef("feature", specs)); }