* @throws Exception if something goes wrong.
*/
@Test
public void canDeleteSingleHook() throws Exception {
final Hooks hooks = MkHooksTest.repo().hooks();
final Hook hook = hooks.create(
// @checkstyle MultipleStringLiterals (1 line)
"geocommit", Collections.<String, String>emptyMap()
);
MatcherAssert.assertThat(
hooks.iterate(),
Matchers.<Hook>iterableWithSize(1)
);
hooks.remove(hook.number());
MatcherAssert.assertThat(
hooks.iterate(),
Matchers.emptyIterable()
);
}