* @throws Exception - If something goes wrong.
*/
@Test
public void removesReference() throws Exception {
final Repo owner = this.repo();
final References refs = owner.git().references();
refs.create("refs/heads/testbr", "qweqwe22");
refs.create("refs/tags/t2", "111teee");
MatcherAssert.assertThat(
refs.iterate(),
Matchers.<Reference>iterableWithSize(2)
);
refs.remove("refs/tags/t2");
MatcherAssert.assertThat(
refs.iterate(),
Matchers.<Reference>iterableWithSize(1)
);
}