* MkHooks can fetch non empty list of hooks.
* @throws Exception If some problem inside
*/
@Test
public void canFetchNonEmptyListOfHooks() throws Exception {
final Hooks hooks = MkHooksTest.repo().hooks();
hooks.create(
// @checkstyle MultipleStringLiterals (1 line)
"geocommit", Collections.<String, String>emptyMap()
);
hooks.create(
"web", Collections.<String, String>emptyMap()
);
MatcherAssert.assertThat(
hooks.iterate(),
Matchers.<Hook>iterableWithSize(2)
);
}