public static VerificationMode atMost(final int count) {
        checkArgument(count > 0, "Times count must be greater than zero");
        return new AtMostVerification(count);
    }
@Test
    public void should_fail_to_verify_at_most_expected_request_while_expectation_can_not_be_met() throws Exception {
        final HttpServer server = httpServer(port(), hit);
        server.get(by(uri("/foo"))).response("bar");
        running(server, () -> {
            assertThat(helper.get(remoteUrl("/foo")), is("bar"));
            assertThat(helper.get(remoteUrl("/foo")), is("bar"));
        });

        assertThrows(VerificationException.class, () -> hit.verify(by(uri("/foo")), atMost(1)));
    }