    @Test
    public void only_allows_arguments_string_integer_closure() {

        try {
            Hooks.Before("TAG", 10D, 100, new MethodClosure(this, "dummyClosureCall"), 0.0);
            fail("CucumberException was not thrown");
        } catch (CucumberException e) {
            assertEquals("An argument of the type java.lang.Double found, Before only allows the argument types " +
                            "String - Tag, Integer - order, and Closure",
                    e.getMessage());
        }
    }